Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\syscall.c Create Date:2022-07-28 12:52:04
Last Modify:2022-05-19 18:06:12 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dst and src must have at least BPF_OBJ_NAME_LEN number of bytes.* Return 0 on success and < 0 on error.

Proto:static int bpf_obj_name_cpy(char *dst, const char *src)

Type:int

Parameter:

TypeParameterName
char *dst
const char *src
557  end = src + BPF_OBJ_NAME_LEN
559  memset(dst, 0, BPF_OBJ_NAME_LEN)
561  When src < end && src cycle
562  If Not isalnum( * src) && src != '_' && src != '.' Then Return -EINVAL
565  dst++ = src++
569  If src == end Then Return -EINVAL
572  Return 0
Caller
NameDescribe
map_createalled via syscall
bpf_prog_load