Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/namei.h
Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Lines | struct nameidata { | ||||
* through the VOP interface. | * through the VOP interface. | ||||
*/ | */ | ||||
struct componentname ni_cnd; | struct componentname ni_cnd; | ||||
struct nameicap_tracker_head ni_cap_tracker; | struct nameicap_tracker_head ni_cap_tracker; | ||||
struct vnode *ni_beneath_latch; | struct vnode *ni_beneath_latch; | ||||
}; | }; | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
enum cache_fpl_status { CACHE_FPL_STATUS_ABORTED, CACHE_FPL_STATUS_PARTIAL, | |||||
CACHE_FPL_STATUS_HANDLED, CACHE_FPL_STATUS_UNSET }; | |||||
int cache_fplookup(struct nameidata *ndp, enum cache_fpl_status *status, | |||||
struct pwd **pwdp); | |||||
/* | /* | ||||
* namei operations | * namei operations | ||||
*/ | */ | ||||
#define LOOKUP 0 /* perform name lookup only */ | #define LOOKUP 0 /* perform name lookup only */ | ||||
#define CREATE 1 /* setup for file creation */ | #define CREATE 1 /* setup for file creation */ | ||||
#define DELETE 2 /* setup for file deletion */ | #define DELETE 2 /* setup for file deletion */ | ||||
#define RENAME 3 /* setup for file renaming */ | #define RENAME 3 /* setup for file renaming */ | ||||
#define OPMASK 3 /* mask for operation */ | #define OPMASK 3 /* mask for operation */ | ||||
▲ Show 20 Lines • Show All 113 Lines • Show Last 20 Lines |