Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

kernel/bpf/syscall.c bpf_map_get_fd_by_id() -> bpf_map_new_fd()

Type Parameter Key Value
PARAM_VALUE 0 map 4096-ptr_max
PARAM_VALUE 1 flags 0-2
DATA_SOURCE 1 flags r bpf_get_file_flag
CAPABLE 0 21
PARAM_COMPARE 0 map == $0

kernel/bpf/syscall.c map_create() -> bpf_map_new_fd()

Type Parameter Key Value
PARAM_VALUE 0 map 4096-ptr_max
PARAM_VALUE 0 map->freeze_mutex.first_waiter 0
PARAM_VALUE 0 map->freeze_mutex.osq.tail.counter 0
PARAM_VALUE 0 map->freeze_mutex.owner.counter 0
PARAM_VALUE 0 map->id 1-s32max
PARAM_VALUE 0 map->map_type 1-35
PARAM_VALUE 0 map->objcg 0,4096-ptr_max
PARAM_VALUE 0 map->objcg->refcnt.percpu_count_ptr 1-u64max
PARAM_VALUE 0 map->refcnt.counter 1
PARAM_VALUE 0 map->security 0,4096-ptr_max
PARAM_VALUE 0 map->usercnt.counter 1
PARAM_VALUE 1 flags 0-2
DATA_SOURCE 1 flags r bpf_get_file_flag
NOSPEC 0 map->map_type
USER_DATA 0 map->btf_key_type_id 0-4294967295
USER_DATA 0 map->btf_value_type_id 0-4294967295
USER_DATA 0 map->btf_vmlinux_value_type_id 0-4294967295
USER_DATA 0 map->map_type 1-34[c]

kernel/bpf/inode.c bpf_obj_get_user() -> bpf_map_new_fd()

Type Parameter Key Value
PARAM_VALUE 0 map 0-ptr_max
PARAM_VALUE 1 flags 0-2
BUF_SIZE 0 map s32min-(-2),1-s32max
DATA_SOURCE 0 map r bpf_obj_do_get
DATA_SOURCE 1 flags r bpf_get_file_flag