函数逻辑报告

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_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

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

返回类型:char

参数:

类型参数名称
const struct path *path
const struct path *root
char *buf
intbuflen
180  res等于bufbuflen
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  如果error小于0则返回:错误号
188  如果error大于0则返回:NULL
190  返回:res