From 8c1f280c1bc948a20e244b32d824780b08bf85c9 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 9 Mar 2015 11:49:30 +0100 Subject: Require all fs_handle_t objects to point to a node. --- src/kernel/include/vfs.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/kernel/include') 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; -- cgit v1.2.3