Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:same as __d_path but appends "(deleted)" for unlinked files.

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

Type:int

Parameter:

TypeParameterName
const struct path *path
const struct path *root
char **buf
int *buflen
217  prepend(buf, buflen, "\0", 1)
218  If d_unlinked(dentry) Then
219  error = prepend(buf, buflen, " (deleted)", 10)
220  If error Then Return error
224  Return 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
Caller
NameDescribe
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