Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:readlink_copy

Proto:int readlink_copy(char __user *buffer, int buflen, const char *link)

Type:int

Parameter:

TypeParameterName
char __user *buffer
intbuflen
const char *link
4635  len = PTR_ERR(link)
4636  If IS_ERR(link) Then Go to out
4639  len = strlen - Find the length of a string*@s: The string to be sized
4640  If len > buflen Then len = buflen
4642  If copy_to_user(buffer, link, len) Then len = -EFAULT
4644  out :
4645  Return len
Caller
NameDescribe
vfs_readlinkvfs_readlink - copy symlink body into userspace buffer*@dentry: dentry on which to get symbolic link*@buffer: user memory pointer*@buflen: size of buffer* Does not touch atime. That's up to the caller if necessary* Does not call security hook.
page_readlink