Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/vnode.h
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
/* | /* | ||||
* Vnode types. VNON means no type. | * Vnode types. VNON means no type. | ||||
*/ | */ | ||||
enum vtype { VNON, VREG, VDIR, VBLK, VCHR, VLNK, VSOCK, VFIFO, VBAD, | enum vtype { VNON, VREG, VDIR, VBLK, VCHR, VLNK, VSOCK, VFIFO, VBAD, | ||||
VMARKER }; | VMARKER }; | ||||
enum vgetstate { VGET_HOLDCNT, VGET_USECOUNT }; | |||||
/* | /* | ||||
* Each underlying filesystem allocates its own private area and hangs | * Each underlying filesystem allocates its own private area and hangs | ||||
* it from v_data. If non-null, this area is freed in getnewvnode(). | * it from v_data. If non-null, this area is freed in getnewvnode(). | ||||
*/ | */ | ||||
struct namecache; | struct namecache; | ||||
struct vpollinfo { | struct vpollinfo { | ||||
▲ Show 20 Lines • Show All 578 Lines • ▼ Show 20 Lines | int vaccess_acl_posix1e(enum vtype type, uid_t file_uid, | ||||
gid_t file_gid, struct acl *acl, accmode_t accmode, | gid_t file_gid, struct acl *acl, accmode_t accmode, | ||||
struct ucred *cred, int *privused); | struct ucred *cred, int *privused); | ||||
void vattr_null(struct vattr *vap); | void vattr_null(struct vattr *vap); | ||||
int vcount(struct vnode *vp); | int vcount(struct vnode *vp); | ||||
#define vdrop(vp) _vdrop((vp), 0) | #define vdrop(vp) _vdrop((vp), 0) | ||||
#define vdropl(vp) _vdrop((vp), 1) | #define vdropl(vp) _vdrop((vp), 1) | ||||
void _vdrop(struct vnode *, bool); | void _vdrop(struct vnode *, bool); | ||||
int vflush(struct mount *mp, int rootrefs, int flags, struct thread *td); | int vflush(struct mount *mp, int rootrefs, int flags, struct thread *td); | ||||
int vget(struct vnode *vp, int lockflag, struct thread *td); | int vget(struct vnode *vp, int flags, struct thread *td); | ||||
enum vgetstate vget_prep(struct vnode *vp); | |||||
int vget_finish(struct vnode *vp, int flags, enum vgetstate vs); | |||||
void vgone(struct vnode *vp); | void vgone(struct vnode *vp); | ||||
#define vhold(vp) _vhold((vp), 0) | #define vhold(vp) _vhold((vp), 0) | ||||
#define vholdl(vp) _vhold((vp), 1) | #define vholdl(vp) _vhold((vp), 1) | ||||
void _vhold(struct vnode *, bool); | void _vhold(struct vnode *, bool); | ||||
void vholdnz(struct vnode *); | void vholdnz(struct vnode *); | ||||
void vinactive(struct vnode *, struct thread *); | void vinactive(struct vnode *, struct thread *); | ||||
int vinvalbuf(struct vnode *vp, int save, int slpflag, int slptimeo); | int vinvalbuf(struct vnode *vp, int save, int slpflag, int slptimeo); | ||||
int vtruncbuf(struct vnode *vp, off_t length, int blksize); | int vtruncbuf(struct vnode *vp, off_t length, int blksize); | ||||
▲ Show 20 Lines • Show All 284 Lines • Show Last 20 Lines |