函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\d_path.c Create Date:2022-07-29 10:42:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:d_absolute_path

函数原型:char *d_absolute_path(const struct path *path, char *buf, int buflen)

返回类型:char

参数:

类型参数名称
const struct path *path
char *buf
intbuflen
196  struct path root = {}
197  res等于bufbuflen
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  如果error大于1则error等于负EINVAL
205  如果error小于0则返回:错误号
207  返回:res
调用者
名称描述
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