This translates a vnode into its component name, and writes that name to
the head of the buffer specified by
buf.
vp
|
|
The vnode to translate.
|
dvp
|
|
The vnode of the parent directory of
vp.
|
cred
|
|
The caller credentials.
|
buf
|
|
The buffer into which to prepend the component name.
|
buflen
|
|
The remaining size of the buffer.
|
The default implementation of
VOP_VPTOCNP
scans through
vp, Ns, 's
parent directory looking for a dirent with a matching file number.
If
vp
is not a directory, then
VOP_VPTOCNP
returns ENOENT.