Finish r194601. Add a cred parameter to the VOP_VPTOCNP(9) manpage.
While here fix igor warning about new line. Reviewed by: kib MFC after: 1 Week
This commit is contained in:
parent
a7ff99ccbb
commit
2be5aa17c0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=279776
@ -28,7 +28,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd November 19, 2011
|
.Dd March 8, 2015
|
||||||
.Dt VOP_VPTOCNP 9
|
.Dt VOP_VPTOCNP 9
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -36,9 +36,10 @@
|
|||||||
.Nd translate a vnode to its component name
|
.Nd translate a vnode to its component name
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.In sys/param.h
|
.In sys/param.h
|
||||||
|
.In sys/ucred.h
|
||||||
.In sys/vnode.h
|
.In sys/vnode.h
|
||||||
.Ft int
|
.Ft int
|
||||||
.Fn VOP_VPTOCNP "struct vnode *vp" "struct vnode **dvp" "char *buf" "int *buflen"
|
.Fn VOP_VPTOCNP "struct vnode *vp" "struct vnode **dvp" "struct ucred *cred" "char *buf" "int *buflen"
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
This translates a vnode into its component name, and writes that name to
|
This translates a vnode into its component name, and writes that name to
|
||||||
the head of the buffer specified by
|
the head of the buffer specified by
|
||||||
@ -49,6 +50,8 @@ The vnode to translate.
|
|||||||
.It Fa dvp
|
.It Fa dvp
|
||||||
The vnode of the parent directory of
|
The vnode of the parent directory of
|
||||||
.Fa vp .
|
.Fa vp .
|
||||||
|
.It Fa cred
|
||||||
|
The caller credentials.
|
||||||
.It Fa buf
|
.It Fa buf
|
||||||
The buffer into which to prepend the component name.
|
The buffer into which to prepend the component name.
|
||||||
.It Fa buflen
|
.It Fa buflen
|
||||||
@ -59,7 +62,8 @@ The default implementation of
|
|||||||
.Nm
|
.Nm
|
||||||
scans through
|
scans through
|
||||||
.Fa vp Ns 's
|
.Fa vp Ns 's
|
||||||
parent directory looking for a dirent with a matching file number. If
|
parent directory looking for a dirent with a matching file number.
|
||||||
|
If
|
||||||
.Fa vp
|
.Fa vp
|
||||||
is not a directory, then
|
is not a directory, then
|
||||||
.Nm
|
.Nm
|
||||||
|
Loading…
Reference in New Issue
Block a user