Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sysctl_cpy_dir

Proto:static ssize_t sysctl_cpy_dir(const struct ctl_dir *dir, char **bufp, size_t *lenp)

Type:ssize_t

Parameter:

TypeParameterName
const struct ctl_dir *dir
char **bufp
size_t *lenp
1145  tmp_ret = 0
1147  If parent Then
1148  tmp_ret = sysctl_cpy_dir(parent, bufp, lenp)
1149  If tmp_ret < 0 Then Return tmp_ret
1153  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
1154  If ret < 0 Then Return ret
1156  bufp += ret
1157  lenp -= ret
1158  ret += tmp_ret
1161  If Not ret Then Return ret
1164  tmp_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
1165  If tmp_ret < 0 Then Return tmp_ret
1167  bufp += tmp_ret
1168  lenp -= tmp_ret
1170  Return ret + tmp_ret
Caller
NameDescribe
sysctl_cpy_dir
____bpf_sysctl_get_name