Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/vnode.h
Show First 20 Lines • Show All 260 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Vnode attributes. A field value of VNOVAL represents a field whose value | * Vnode attributes. A field value of VNOVAL represents a field whose value | ||||
* is unavailable (getattr) or which is not to be changed (setattr). | * is unavailable (getattr) or which is not to be changed (setattr). | ||||
*/ | */ | ||||
struct vattr { | struct vattr { | ||||
enum vtype va_type; /* vnode type (for create) */ | enum vtype va_type; /* vnode type (for create) */ | ||||
u_short va_mode; /* files access mode and type */ | u_short va_mode; /* files access mode and type */ | ||||
short va_nlink; /* number of references to file */ | u_short va_padding0; | ||||
uid_t va_uid; /* owner user id */ | uid_t va_uid; /* owner user id */ | ||||
gid_t va_gid; /* owner group id */ | gid_t va_gid; /* owner group id */ | ||||
nlink_t va_nlink; /* number of references to file */ | |||||
dev_t va_fsid; /* filesystem id */ | dev_t va_fsid; /* filesystem id */ | ||||
long va_fileid; /* file id */ | ino_t va_fileid; /* file id */ | ||||
u_quad_t va_size; /* file size in bytes */ | u_quad_t va_size; /* file size in bytes */ | ||||
long va_blocksize; /* blocksize preferred for i/o */ | long va_blocksize; /* blocksize preferred for i/o */ | ||||
struct timespec va_atime; /* time of last access */ | struct timespec va_atime; /* time of last access */ | ||||
struct timespec va_mtime; /* time of last modification */ | struct timespec va_mtime; /* time of last modification */ | ||||
struct timespec va_ctime; /* time file changed */ | struct timespec va_ctime; /* time file changed */ | ||||
struct timespec va_birthtime; /* time file created */ | struct timespec va_birthtime; /* time file created */ | ||||
u_long va_gen; /* generation number of file */ | u_long va_gen; /* generation number of file */ | ||||
u_long va_flags; /* flags defined for file */ | u_long va_flags; /* flags defined for file */ | ||||
▲ Show 20 Lines • Show All 298 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Public vnode manipulation functions. | * Public vnode manipulation functions. | ||||
*/ | */ | ||||
struct componentname; | struct componentname; | ||||
struct file; | struct file; | ||||
struct mount; | struct mount; | ||||
struct nameidata; | struct nameidata; | ||||
struct ostat; | struct ostat; | ||||
struct freebsd11_stat; | |||||
struct thread; | struct thread; | ||||
struct proc; | struct proc; | ||||
struct stat; | struct stat; | ||||
struct nstat; | struct nstat; | ||||
struct ucred; | struct ucred; | ||||
struct uio; | struct uio; | ||||
struct vattr; | struct vattr; | ||||
struct vfsops; | struct vfsops; | ||||
Show All 12 Lines | void cache_enter_time(struct vnode *dvp, struct vnode *vp, | ||||
struct timespec *dtsp); | struct timespec *dtsp); | ||||
int cache_lookup(struct vnode *dvp, struct vnode **vpp, | int cache_lookup(struct vnode *dvp, struct vnode **vpp, | ||||
struct componentname *cnp, struct timespec *tsp, int *ticksp); | struct componentname *cnp, struct timespec *tsp, int *ticksp); | ||||
void cache_purge(struct vnode *vp); | void cache_purge(struct vnode *vp); | ||||
void cache_purge_negative(struct vnode *vp); | void cache_purge_negative(struct vnode *vp); | ||||
void cache_purgevfs(struct mount *mp, bool force); | void cache_purgevfs(struct mount *mp, bool force); | ||||
int change_dir(struct vnode *vp, struct thread *td); | int change_dir(struct vnode *vp, struct thread *td); | ||||
void cvtstat(struct stat *st, struct ostat *ost); | void cvtstat(struct stat *st, struct ostat *ost); | ||||
void cvtnstat(struct stat *sb, struct nstat *nsb); | void freebsd11_cvtnstat(struct stat *sb, struct nstat *nsb); | ||||
void freebsd11_cvtstat(struct stat *st, struct freebsd11_stat *ost); | |||||
int getnewvnode(const char *tag, struct mount *mp, struct vop_vector *vops, | int getnewvnode(const char *tag, struct mount *mp, struct vop_vector *vops, | ||||
struct vnode **vpp); | struct vnode **vpp); | ||||
void getnewvnode_reserve(u_int count); | void getnewvnode_reserve(u_int count); | ||||
void getnewvnode_drop_reserve(void); | void getnewvnode_drop_reserve(void); | ||||
int insmntque1(struct vnode *vp, struct mount *mp, | int insmntque1(struct vnode *vp, struct mount *mp, | ||||
void (*dtr)(struct vnode *, void *), void *dtr_arg); | void (*dtr)(struct vnode *, void *), void *dtr_arg); | ||||
int insmntque(struct vnode *vp, struct mount *mp); | int insmntque(struct vnode *vp, struct mount *mp); | ||||
u_quad_t init_va_filerev(void); | u_quad_t init_va_filerev(void); | ||||
▲ Show 20 Lines • Show All 263 Lines • Show Last 20 Lines |