Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\d_path.c Create Date:2022-07-28 20:12:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__d_path - return the path of a dentry*@path: the dentry/vfsmount to report*@root: root vfsmnt/dentry*@buf: buffer to return value in*@buflen: buffer length* Convert a dentry into an ASCII path name

Proto:char *__d_path(const struct path *path, const struct path *root, char *buf, int buflen)

Type:char

Parameter:

TypeParameterName
const struct path *path
const struct path *root
char *buf
intbuflen
180  res = buf + buflen
183  prepend( & res, & buflen, "\0", 1)
184  error = prepend_path - Prepend path string to a buffer*@path: the dentry/vfsmount to report*@root: root vfsmnt/dentry*@buffer: pointer to the end of the buffer*@buflen: pointer to buffer length* The function will first try to write out the pathname without taking
186  If error < 0 Then Return ERR_PTR(error)
188  If error > 0 Then Return NULL
190  Return res