Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/vnode.h
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | |||||
enum vgetstate { VGET_NONE, VGET_HOLDCNT, VGET_USECOUNT }; | enum vgetstate { VGET_NONE, 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 cache_fpl; | |||||
struct vpollinfo { | struct vpollinfo { | ||||
struct mtx vpi_lock; /* lock to protect below */ | struct mtx vpi_lock; /* lock to protect below */ | ||||
struct selinfo vpi_selinfo; /* identity of poller(s) */ | struct selinfo vpi_selinfo; /* identity of poller(s) */ | ||||
short vpi_events; /* what they are looking for */ | short vpi_events; /* what they are looking for */ | ||||
short vpi_revents; /* what has happened */ | short vpi_revents; /* what has happened */ | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 562 Lines • ▼ Show 20 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_vnode_init(struct vnode *vp); | void cache_vnode_init(struct vnode *vp); | ||||
void cache_purge(struct vnode *vp); | void cache_purge(struct vnode *vp); | ||||
void cache_purge_vgone(struct vnode *vp); | void cache_purge_vgone(struct vnode *vp); | ||||
void cache_purge_negative(struct vnode *vp); | void cache_purge_negative(struct vnode *vp); | ||||
void cache_purgevfs(struct mount *mp); | void cache_purgevfs(struct mount *mp); | ||||
char *cache_symlink_alloc(size_t size, int flags); | |||||
void cache_symlink_free(char *string); | |||||
int cache_symlink_resolve(struct cache_fpl *fpl, const char *string, | |||||
size_t len); | |||||
void cache_vop_rename(struct vnode *fdvp, struct vnode *fvp, struct vnode *tdvp, | void cache_vop_rename(struct vnode *fdvp, struct vnode *fvp, struct vnode *tdvp, | ||||
struct vnode *tvp, struct componentname *fcnp, struct componentname *tcnp); | struct vnode *tvp, struct componentname *fcnp, struct componentname *tcnp); | ||||
void cache_vop_rmdir(struct vnode *dvp, struct vnode *vp); | void cache_vop_rmdir(struct vnode *dvp, struct vnode *vp); | ||||
#ifdef INVARIANTS | #ifdef INVARIANTS | ||||
void cache_validate(struct vnode *dvp, struct vnode *vp, | void cache_validate(struct vnode *dvp, struct vnode *vp, | ||||
struct componentname *cnp); | struct componentname *cnp); | ||||
#else | #else | ||||
static inline void | static inline void | ||||
▲ Show 20 Lines • Show All 228 Lines • ▼ Show 20 Lines | |||||
void vop_setextattr_post(void *a, int rc); | void vop_setextattr_post(void *a, int rc); | ||||
void vop_symlink_pre(void *a); | void vop_symlink_pre(void *a); | ||||
void vop_symlink_post(void *a, int rc); | void vop_symlink_post(void *a, int rc); | ||||
int vop_sigdefer(struct vop_vector *vop, struct vop_generic_args *a); | int vop_sigdefer(struct vop_vector *vop, struct vop_generic_args *a); | ||||
#ifdef DEBUG_VFS_LOCKS | #ifdef DEBUG_VFS_LOCKS | ||||
void vop_fplookup_vexec_debugpre(void *a); | void vop_fplookup_vexec_debugpre(void *a); | ||||
void vop_fplookup_vexec_debugpost(void *a, int rc); | void vop_fplookup_vexec_debugpost(void *a, int rc); | ||||
void vop_fplookup_symlink_debugpre(void *a); | |||||
void vop_fplookup_symlink_debugpost(void *a, int rc); | |||||
void vop_strategy_debugpre(void *a); | void vop_strategy_debugpre(void *a); | ||||
void vop_lock_debugpre(void *a); | void vop_lock_debugpre(void *a); | ||||
void vop_lock_debugpost(void *a, int rc); | void vop_lock_debugpost(void *a, int rc); | ||||
void vop_unlock_debugpre(void *a); | void vop_unlock_debugpre(void *a); | ||||
void vop_need_inactive_debugpre(void *a); | void vop_need_inactive_debugpre(void *a); | ||||
void vop_need_inactive_debugpost(void *a, int rc); | void vop_need_inactive_debugpost(void *a, int rc); | ||||
void vop_mkdir_debugpost(void *a, int rc); | void vop_mkdir_debugpost(void *a, int rc); | ||||
#else | #else | ||||
#define vop_fplookup_vexec_debugpre(x) do { } while (0) | #define vop_fplookup_vexec_debugpre(x) do { } while (0) | ||||
#define vop_fplookup_vexec_debugpost(x, y) do { } while (0) | #define vop_fplookup_vexec_debugpost(x, y) do { } while (0) | ||||
#define vop_fplookup_symlink_debugpre(x) do { } while (0) | |||||
#define vop_fplookup_symlink_debugpost(x, y) do { } while (0) | |||||
#define vop_strategy_debugpre(x) do { } while (0) | #define vop_strategy_debugpre(x) do { } while (0) | ||||
#define vop_lock_debugpre(x) do { } while (0) | #define vop_lock_debugpre(x) do { } while (0) | ||||
#define vop_lock_debugpost(x, y) do { } while (0) | #define vop_lock_debugpost(x, y) do { } while (0) | ||||
#define vop_unlock_debugpre(x) do { } while (0) | #define vop_unlock_debugpre(x) do { } while (0) | ||||
#define vop_need_inactive_debugpre(x) do { } while (0) | #define vop_need_inactive_debugpre(x) do { } while (0) | ||||
#define vop_need_inactive_debugpost(x, y) do { } while (0) | #define vop_need_inactive_debugpost(x, y) do { } while (0) | ||||
#define vop_mkdir_debugpost(x, y) do { } while (0) | #define vop_mkdir_debugpost(x, y) do { } while (0) | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 191 Lines • Show Last 20 Lines |