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_absolute_path

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

Type:char

Parameter:

TypeParameterName
const struct path *path
char *buf
intbuflen
196  struct path root = {}
197  res = buf + buflen
200  prepend( & res, & buflen, "\0", 1)
201  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
203  If error > 1 Then error = -EINVAL
205  If error < 0 Then Return ERR_PTR(error)
207  Return res
Caller
NameDescribe
d_namespace_pathd_namespace_path - lookup a name associated with a given path*@path: path to lookup (NOT NULL)*@buf: buffer to store path to (NOT NULL)*@name: Returns - pointer for start of path name with in @buf (NOT NULL)*@flags: flags controlling path
ima_d_pathma_d_path - return a pointer to the full pathname* Attempt to return a pointer to the full pathname for use in the* IMA measurement list, IMA audit records, and auditing logs