函数逻辑报告 |
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 |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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 |
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 |
2294 | next_id自加 |
2295 | spin_lock_bh(lock) |
2298 | spin_unlock_bh(lock) |
2300 | 如果非err则err等于put_user - Write a simple value into user space(next_id, & next_id) |
2303 | 返回:err |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |