函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bpf_obj_get_next_id

函数原型:static int bpf_obj_get_next_id(const union bpf_attr *attr, union bpf_attr __user *uattr, struct idr *idr, spinlock_t *lock)

返回类型:int

参数:

类型参数名称
const union bpf_attr *attr
union bpf_attr __user *uattr
struct idr *idr
spinlock_t *lock
2285  next_id等于start_id
2286  err等于0
2288  如果helper macro to check that unused fields 'union bpf_attr' are zero (BPF_OBJ_GET_NEXT_ID)或next_id大于等于INT_MAX则返回:负EINVAL
2291  如果非操作权限检查则返回:负EPERM
2294  next_id自加
2295  spin_lock_bh(lock)
2296  如果非dr_get_next() - Find next populated entry.*@idr: IDR handle.*@nextid: Pointer to an ID.* Returns the next populated entry in the tree with an ID greater than* or equal to the value pointed to by @nextid. On exit, @nextid is updatederr等于负ENOENT
2298  spin_unlock_bh(lock)
2300  如果非errerr等于put_user - Write a simple value into user space(next_id, & next_id)
2303  返回:err