Bring VOP_LOOKUP(9) up to date
* Remove the cn_hash field (removed by r51906) * Add the cn_lkflags field (added by r144285) * Remove duplicate definition of cnp. Reviewed by: kib MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D16629
This commit is contained in:
parent
5c4aca8218
commit
880cdb8805
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=337482
@ -28,7 +28,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd November 17, 2017
|
.Dd August 8, 2018
|
||||||
.Dt VOP_LOOKUP 9
|
.Dt VOP_LOOKUP 9
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -51,10 +51,7 @@ The locked vnode of the directory to search.
|
|||||||
The address of a variable where the resulting locked vnode should be stored.
|
The address of a variable where the resulting locked vnode should be stored.
|
||||||
.It Fa cnp
|
.It Fa cnp
|
||||||
The pathname component to be searched for.
|
The pathname component to be searched for.
|
||||||
.El
|
It is a pointer to a componentname structure defined as follows:
|
||||||
.Pp
|
|
||||||
.Fa Cnp
|
|
||||||
is a pointer to a componentname structure defined as follows:
|
|
||||||
.Bd -literal
|
.Bd -literal
|
||||||
struct componentname {
|
struct componentname {
|
||||||
/*
|
/*
|
||||||
@ -64,13 +61,13 @@ struct componentname {
|
|||||||
u_long cn_flags; /* flags to namei */
|
u_long cn_flags; /* flags to namei */
|
||||||
struct thread *cn_thread; /* thread requesting lookup */
|
struct thread *cn_thread; /* thread requesting lookup */
|
||||||
struct ucred *cn_cred; /* credentials */
|
struct ucred *cn_cred; /* credentials */
|
||||||
|
int cn_lkflags; /* Lock flags LK_EXCLUSIVE or LK_SHARED */
|
||||||
/*
|
/*
|
||||||
* 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 */
|
||||||
u_long cn_hash; /* hash value of looked up name */
|
|
||||||
};
|
};
|
||||||
.Ed
|
.Ed
|
||||||
.Pp
|
.Pp
|
||||||
|
Loading…
Reference in New Issue
Block a user