函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:do_readlinkat

函数原型:static int do_readlinkat(int dfd, const char __user *pathname, char __user *buf, int bufsiz)

返回类型:int

参数:

类型参数名称
intdfd
const char __user *pathname
char __user *buf
intbufsiz
392  empty等于0
393  lookup_flags等于accept empty path [user_... only]
395  如果bufsiz小于等于0则返回:负EINVAL
398  retry :
399  error等于user_path_at_empty(dfd, pathname, lookup_flags, & path, & empty)
400  如果非error
401  inode等于d_backing_inode - Get upper or lower inode we should be using*@upper: The upper layer* This is the helper that should be used to get at the inode that will be used* if this dentry were to be opened as a file. The inode may be on the upper
403  error等于如果empty则负ENOENT否则负EINVAL
407  如果d_is_symlink(dentry)或readlink
409  如果非error
410  touch_atime( & path)
414  path_put( & path)
417  转到:retry
420  返回:error
调用者
名称描述
SYSCALL_DEFINE4
SYSCALL_DEFINE3