函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:prepend

函数原型:static int prepend(char **buffer, int *buflen, const char *str, int namelen)

返回类型:int

参数:

类型参数名称
char **buffer
int *buflen
const char *str
intnamelen
13  buflen减等于namelen
14  如果buflen小于0则返回:负ENAMETOOLONG
16  buffer减等于namelen
17  memcpy( * buffer, str, namelen)
18  返回:0
调用者
名称描述
__d_path__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
d_absolute_path
path_with_deletedsame as __d_path but appends "(deleted)" for unlinked files.
prepend_unreachable
simple_dname
__dentry_pathWrite full pathname from the root of the filesystem into the buffer.
dentry_path
SYSCALL_DEFINE2NOTE! The user-level library version returns a* character pointer