函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:policy_readlink

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

返回类型:int

参数:

类型参数名称
struct dentry *dentry
char __user *buffer
intbuflen
2594  res等于snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
2596  如果res大于0且res小于name的长度则res等于readlink_copy(buffer, buflen, name)
2598  否则res等于负ENOENT
2601  返回:res