函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\seccomp.c Create Date:2022-07-27 12:51:03
Last Modify:2022-05-19 16:58:48 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:seccomp_names_from_actions_logged

函数原型:static bool seccomp_names_from_actions_logged(char *names, size_t size, unsigned int actions_logged, const char *sep)

返回类型:bool

参数:

类型参数名称
char *names
size_tsize
unsigned intactions_logged
const char *sep
1633  bool append_sep = false
1635 namesize循环
1638  如果非actions_logged按位与log的值则继续下一循环
1641  如果append_sep
1643  如果ret小于0则返回:false
1646  names加等于ret
1647  size减等于ret
1648  否则append_sep = true
1651  ret等于strscpy - Copy a C-string into a sized buffer*@dest: Where to copy the string to*@src: Where to copy the string from*@count: Size of destination buffer* Copy the string, or as much of it as fits, into the dest buffer. The
1652  如果ret小于0则返回:false
1655  names加等于ret
1656  size减等于ret
1659  返回:true
调用者
名称描述
read_actions_logged
audit_actions_logged