函数逻辑报告

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

函数名称:same as __d_path but appends "(deleted)" for unlinked files.

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

返回类型:int

参数:

类型参数名称
const struct path *path
const struct path *root
char **buf
int *buflen
217  prepend(buf, buflen, "\0", 1)
218  如果d_unlinked(dentry)则
219  error等于prepend(buf, buflen, " (deleted)", 10)
220  如果error则返回:error
224  返回: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
调用者
名称描述
d_pathd_path - return the path of a dentry*@path: path to report*@buf: buffer to return value in*@buflen: buffer length* Convert a dentry into an ASCII path name