Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\cgroup.c Create Date:2022-07-28 13:28:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:____bpf_sysctl_get_name

Proto:static inline __attribute__((__always_inline__)) u64 ____bpf_sysctl_get_name(struct bpf_sysctl_kern *ctx, char *buf, size_t buf_len, u64 flags)

Type:u64

Parameter:

TypeParameterName
struct bpf_sysctl_kern *ctx
char *buf
size_tbuf_len
u64flags
1176  tmp_ret = 0
1178  If Not buf Then Return -EINVAL
1181  If Not (flags & BPF_FUNC_sysctl_get_name flags. ) Then
1182  If Not head Then Return -EINVAL
1184  tmp_ret = sysctl_cpy_dir(parent, & buf, & buf_len)
1185  If tmp_ret < 0 Then Return 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  Return If ret < 0 Then ret Else tmp_ret + ret