Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bpf_charge_memlock

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

Type:int

Parameter:

TypeParameterName
struct user_struct *user
u32pages
205  memlock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT determines the page size
207  If atomic_long_add_return(pages, & locked_vm) > memlock_limit Then
208  atomic_long_sub(pages, & locked_vm)
209  Return -EPERM
211  Return 0
Caller
NameDescribe
bpf_map_charge_init
bpf_map_charge_memlock