函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\syscall.c Create Date:2022-07-27 14:05:53
Last Modify:2022-05-19 18:06:12 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:bpf_prog_charge_memlock

函数原型:static int bpf_prog_charge_memlock(struct bpf_prog *prog)

返回类型:int

参数:

类型参数名称
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  如果ret
1338  free_uid(user)
1339  返回:ret
1342  user等于user
1343  返回:0
调用者
名称描述
bpf_prog_load