函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:gen_symlink_name

函数原型:static char *gen_symlink_name(int depth, const char *dirname, const char *fname)

返回类型:char

参数:

类型参数名称
intdepth
const char *dirname
const char *fname
1608  size等于depth乘6加strlen - Find the length of a string*@s: The string to be sizedstrlen - Find the length of a string*@s: The string to be sized加11
1610  s等于buffer等于开辟内存
1611  如果非buffer则返回:错误号
1614 depth大于0循环
1615  strcpy(s, "../../")
1616  s加等于6
1617  size减等于6
1620  error等于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*@
1621  如果error大于等于sizeerror小于0则
1622  释放内存
1623  返回:错误号
1626  返回:buffer
调用者
名称描述
rawdata_get_link_base