diff options
author | Alex Auvolat <alex@adnab.me> | 2015-03-09 11:49:30 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2015-03-09 11:49:30 +0100 |
commit | 8c1f280c1bc948a20e244b32d824780b08bf85c9 (patch) | |
tree | 6288a0c801c05a2c06378d75a912f06b86438c3d /src/kernel/include | |
parent | 6dd488b87fdc47fb377ba648a6cd598bdab87f59 (diff) | |
download | kogata-8c1f280c1bc948a20e244b32d824780b08bf85c9.tar.gz kogata-8c1f280c1bc948a20e244b32d824780b08bf85c9.zip |
Require all fs_handle_t objects to point to a node.
Diffstat (limited to 'src/kernel/include')
-rw-r--r-- | src/kernel/include/vfs.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/kernel/include/vfs.h b/src/kernel/include/vfs.h index a56ecae..cc6d11c 100644 --- a/src/kernel/include/vfs.h +++ b/src/kernel/include/vfs.h @@ -45,17 +45,13 @@ typedef struct fs_node_ops fs_node_ops_t; // ------------------------------------------- // Structure defining a handle to an open file // This structure is entirely managed by the VFS, the underlying filesystem does not see it -// For IPC structures (sockets, channels), fs and node are null because the handle does not reference -// an underlying object. The ops and data fields are filled in by the IPC code with corresponding -// data structures. All VFS calls are done on ops and data as specified in the handle and not the node. +// For IPC structures (sockets, channels), fs is null, but a node object is nevertheless +// created by the IPC code. typedef struct fs_handle { struct fs *fs; struct fs_node *node; - fs_node_ops_t *ops; - fs_node_ptr data; - int refs; int mode; |