Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/namei.h
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | struct componentname { | ||||
/* | /* | ||||
* Shared between lookup and commit routines. | * Shared between lookup and commit routines. | ||||
*/ | */ | ||||
char *cn_pnbuf; /* pathname buffer */ | char *cn_pnbuf; /* pathname buffer */ | ||||
char *cn_nameptr; /* pointer to looked up name */ | char *cn_nameptr; /* pointer to looked up name */ | ||||
long cn_namelen; /* length of looked up component */ | long cn_namelen; /* length of looked up component */ | ||||
}; | }; | ||||
struct nameicap_tracker; | |||||
TAILQ_HEAD(nameicap_tracker_head, nameicap_tracker); | |||||
/* | /* | ||||
* Encapsulation of namei parameters. | * Encapsulation of namei parameters. | ||||
*/ | */ | ||||
struct nameidata { | struct nameidata { | ||||
/* | /* | ||||
* Arguments to namei/lookup. | * Arguments to namei/lookup. | ||||
*/ | */ | ||||
const char *ni_dirp; /* pathname pointer */ | const char *ni_dirp; /* pathname pointer */ | ||||
Show All 23 Lines | struct nameidata { | ||||
char *ni_next; /* next location in pathname */ | char *ni_next; /* next location in pathname */ | ||||
u_int ni_loopcnt; /* count of symlinks encountered */ | u_int ni_loopcnt; /* count of symlinks encountered */ | ||||
/* | /* | ||||
* Lookup parameters: this structure describes the subset of | * Lookup parameters: this structure describes the subset of | ||||
* information from the nameidata structure that is passed | * information from the nameidata structure that is passed | ||||
* through the VOP interface. | * through the VOP interface. | ||||
*/ | */ | ||||
struct componentname ni_cnd; | struct componentname ni_cnd; | ||||
struct nameicap_tracker_head ni_cap_tracker; | |||||
}; | }; | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
/* | /* | ||||
* 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 */ | ||||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |