Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bpf_prog_charge_memlock

Proto:static int bpf_prog_charge_memlock(struct bpf_prog *prog)

Type:int

Parameter:

TypeParameterName
struct bpf_prog *prog
1333  user = get_current_user - Get the current task's user_struct* Get the user record of the current task, pinning it so that it can't go* away.()
1336  ret = __bpf_prog_charge(user, Number of allocated pages )
1337  If ret Then
1338  free_uid(user)
1339  Return ret
1342  user = user
1343  Return 0
Caller
NameDescribe
bpf_prog_load