]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
vfs: unify virtual filesystems in registry and add /dev/vda to devfs
authorTulio A M Mendes <[email protected]>
Tue, 26 May 2026 01:54:53 +0000 (22:54 -0300)
committerTulio A M Mendes <[email protected]>
Wed, 3 Jun 2026 04:02:35 +0000 (01:02 -0300)
commit7e489171eaf62532bb654863365a7342b28e6273
treee1c3643331d788db0f85331cf84aeee522da30f2
parent30861c8c16edb7ed6dc7081d4c93608d83fa7c67
vfs: unify virtual filesystems in registry and add /dev/vda to devfs

- Added tmpfs_mount/tmpfs_kill_sb to tmpfs.c with proper cleanup
- Added devfs_mount/devfs_kill_sb to devfs.c (static globals, no cleanup needed)
- Added procfs_mount/procfs_kill_sb to procfs.c (static globals, no cleanup needed)
- Registered tmpfs, devfs, and procfs in filesystem type registry in init.c
- Added /dev/vda block device node to devfs for consistency with virtio-blk
- Updated headers (tmpfs.h, devfs.h, procfs.h) with VFS mount interface declarations
- Added necessary includes (fs.h, blockdev.h) to virtual filesystem implementations

Test results:
- Smoke test: 119/119 PASS
- Zero regressions
include/devfs.h
include/procfs.h
include/tmpfs.h
src/kernel/devfs.c
src/kernel/init.c
src/kernel/procfs.c
src/kernel/tmpfs.c