dba2d1f8b4
This call copies a file descriptor from a remote process into the calling process. The call is for the VND driver only, and in the future, ACLs will prevent any other process from using this call. Change-Id: Ib16fdd1f1a12cb38a70d7e441dad91bc86898f6d
30 lines
1.3 KiB
C
30 lines
1.3 KiB
C
#ifndef __VFS_VNODE_H__
|
|
#define __VFS_VNODE_H__
|
|
|
|
EXTERN struct vnode {
|
|
endpoint_t v_fs_e; /* FS process' endpoint number */
|
|
endpoint_t v_mapfs_e; /* mapped FS process' endpoint number */
|
|
ino_t v_inode_nr; /* inode number on its (minor) device */
|
|
ino_t v_mapinode_nr; /* mapped inode number of mapped FS. */
|
|
mode_t v_mode; /* file type, protection, etc. */
|
|
uid_t v_uid; /* uid of inode. */
|
|
gid_t v_gid; /* gid of inode. */
|
|
off_t v_size; /* current file size in bytes */
|
|
int v_ref_count; /* # times vnode used; 0 means slot is free */
|
|
int v_fs_count; /* # reference at the underlying FS */
|
|
int v_mapfs_count; /* # reference at the underlying mapped FS */
|
|
endpoint_t v_bfs_e; /* endpoint number for the FS proces in case
|
|
of a block special file */
|
|
dev_t v_dev; /* device number on which the corresponding
|
|
inode resides */
|
|
dev_t v_sdev; /* device number for special files */
|
|
struct vmnt *v_vmnt; /* vmnt object of the partition */
|
|
tll_t v_lock; /* three-level-lock */
|
|
} vnode[NR_VNODES];
|
|
|
|
/* vnode lock types mapping */
|
|
#define VNODE_NONE TLL_NONE /* used only for get_filp2 to avoid locking */
|
|
#define VNODE_READ TLL_READ
|
|
#define VNODE_OPCL TLL_READSER
|
|
#define VNODE_WRITE TLL_WRITE
|
|
#endif
|