Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:do_readlinkat

Proto:static int do_readlinkat(int dfd, const char __user *pathname, char __user *buf, int bufsiz)

Type:int

Parameter:

TypeParameterName
intdfd
const char __user *pathname
char __user *buf
intbufsiz
392  empty = 0
393  lookup_flags = accept empty path [user_... only]
395  If bufsiz <= 0 Then Return -EINVAL
398  retry :
399  error = user_path_at_empty(dfd, pathname, lookup_flags, & path, & empty)
400  If Not error Then
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 = If empty Then -ENOENT Else -EINVAL
407  If d_is_symlink(dentry) || readlink Then
409  If Not error Then
414  path_put( & path)
417  Go to retry
420  Return error
Caller
NameDescribe
SYSCALL_DEFINE4
SYSCALL_DEFINE3