4 endpoint_t v_fs_e
; /* FS process' endpoint number */
5 ino_t v_inode_nr
; /* inode number on its (minor) device */
6 mode_t v_mode
; /* file type, protection, etc. */
9 off_t v_size
; /* current file size in bytes */
10 int v_ref_count
; /* # times vnode used; 0 means slot is free */
11 int v_fs_count
; /* # reference at the underlying FS */
12 int v_ref_check
; /* for consistency checks */
13 char v_pipe
; /* set to I_PIPE if pipe */
16 endpoint_t v_bfs_e
; /* endpoint number for the FS proces in case
17 of a block special file */
19 dev_t v_dev
; /* device number on which the corresponding
22 dev_t v_sdev
; /* device number for special files */
23 unsigned short v_index
; /* inode's index in the FS inode table */
24 struct vmnt
*v_vmnt
; /* vmnt object of the partition */
31 #define NIL_VNODE (struct vnode *) 0 /* indicates absence of vnode slot */
33 /* Field values. Note that CLEAN and DIRTY are defined in "const.h" */
34 #define NO_PIPE 0 /* i_pipe is NO_PIPE if inode is not a pipe */
35 #define I_PIPE 1 /* i_pipe is I_PIPE if inode is a pipe */
36 #define NO_MOUNT 0 /* i_mount is NO_MOUNT if file not mounted on*/
37 #define I_MOUNT 1 /* i_mount is I_MOUNT if file mounted on */
38 #define NO_SEEK 0 /* i_seek = NO_SEEK if last op was not SEEK */
39 #define ISEEK 1 /* i_seek = ISEEK if last op was SEEK */