函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\cgroup.c Create Date:2022-07-27 14:47:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:____bpf_sysctl_get_name

函数原型:static inline __attribute__((__always_inline__)) u64 ____bpf_sysctl_get_name(struct bpf_sysctl_kern *ctx, char *buf, size_t buf_len, u64 flags)

返回类型:u64

参数:

类型参数名称
struct bpf_sysctl_kern *ctx
char *buf
size_tbuf_len
u64flags
1176  tmp_ret等于0
1178  如果非buf则返回:负EINVAL
1181  如果非flags按位与BPF_FUNC_sysctl_get_name flags. 的值则
1182  如果非head则返回:负EINVAL
1184  tmp_ret等于sysctl_cpy_dir(parent, & buf, & buf_len)
1185  如果tmp_ret小于0则返回:tmp_ret
1189  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
1191  返回:如果ret小于0则ret否则tmp_retret