函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:readlink_copy

函数原型:int readlink_copy(char __user *buffer, int buflen, const char *link)

返回类型:int

参数:

类型参数名称
char __user *buffer
intbuflen
const char *link
4635  len等于错误
4636  如果是错误则转到:out
4639  len等于strlen - Find the length of a string*@s: The string to be sized
4640  如果len大于buflenlen等于buflen
4642  如果copy_to_user(buffer, link, len)则len等于负EFAULT
4644  out :
4645  返回:len
调用者
名称描述
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