Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__bpf_prog_charge

Proto:int __bpf_prog_charge(struct user_struct *user, u32 pages)

Type:int

Parameter:

TypeParameterName
struct user_struct *user
u32pages
1311  memlock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT determines the page size
1314  If user Then
1315  user_bufs = atomic_long_add_return(pages, & locked_vm)
1316  If user_bufs > memlock_limit Then
1318  Return -EPERM
1322  Return 0
Caller
NameDescribe
bpf_prog_charge_memlock