]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
refactor: VFS file_operations dispatch layer
authorTulio A M Mendes <[email protected]>
Fri, 13 Feb 2026 21:05:14 +0000 (18:05 -0300)
committerTulio A M Mendes <[email protected]>
Fri, 13 Feb 2026 21:05:14 +0000 (18:05 -0300)
commitf1ad52f2add18232e7b659cb16dcd0b5d4276037
tree0851af3277e540c46a5b084526774b7267eb9b00
parentb5267984a4558d779a1414760b61a92684506c80
refactor: VFS file_operations dispatch layer

Add struct file_operations to fs.h with all VFS callback signatures.
Add const struct file_operations* f_ops to fs_node_t.

Update all VFS dispatch points (fs.c wrappers + syscall.c direct
dispatch for poll, readdir, ioctl, mmap) to check f_ops first,
then fall back to legacy per-node function pointers.

This enables incremental migration: filesystems can adopt f_ops
one at a time while legacy pointers continue to work.

20/20 smoke tests pass.
include/fs.h
src/kernel/fs.c
src/kernel/syscall.c