函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\realpath.c Create Date:2022-07-27 21:14:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:moyo_get_dentry_path - Get the path of a dentry.*@dentry: Pointer to "struct dentry".*@buffer: Pointer to buffer to return value in.*@buflen: Sizeof @buffer.* Returns the buffer on success, an error code otherwise.

函数原型:static char *tomoyo_get_dentry_path(struct dentry *dentry, char *const buffer, const int buflen)

返回类型:char

参数:

类型参数名称
struct dentry *dentry
char *constbuffer
const intbuflen
127  pos等于错误号
129  如果buflen大于等于256则
130  pos等于dentry_path_raw(dentry, buffer, buflen - 1)
131  如果非是错误pos恒等于'/'且pos[1]则
134  如果inodeS_ISDIR(i_mode)则
135  buffer[buflen - 2]等于'/'
136  buffer[buflen - 1]等于'\0'
140  返回:pos
调用者
名称描述
tomoyo_get_local_pathmoyo_get_local_path - Get the path of a dentry.*@dentry: Pointer to "struct dentry".*@buffer: Pointer to buffer to return value in.*@buflen: Sizeof @buffer.* Returns the buffer on success, an error code otherwise.