Defined in 2 files as a prototype:

Defined in 3 files as a function:

Referenced in 3 files:

Smatch caller information:

kernel/bpf/syscall.c prog_assoc_struct_ops() -> bpf_prog_assoc_struct_ops()

Type Parameter Key Value
PARAM_VALUE 0 prog 4096-ptr_max
PARAM_VALUE 0 prog->type 0-26,28-u32max
PARAM_VALUE 1 map 4096-ptr_max
PARAM_VALUE 1 map->map_type 26
BUF_SIZE 0 prog s32min-(-2),1-s32max
BUF_SIZE 0 prog s32min-(-2),1-s32max
BUF_SIZE 1 map s32min-(-2),1-s32max
BUF_SIZE 1 map s32min-(-2),1-s32max
DATA_SOURCE 0 prog r bpf_prog_get
DATA_SOURCE 1 map r bpf_map_get

kernel/bpf/bpf_struct_ops.c bpf_struct_ops_map_update_elem() -> bpf_prog_assoc_struct_ops()

Type Parameter Key Value
PARAM_VALUE 0 prog 4096-ptr_max
PARAM_VALUE 0 prog->aux 4096-ptr_max
PARAM_VALUE 0 prog->aux->attach_btf_id 0-s32max
PARAM_VALUE 0 prog->expected_attach_type 0-16777214
PARAM_VALUE 0 prog->type 27
PARAM_VALUE 1 map 4096-ptr_max
BUF_SIZE 0 prog s32min-(-2),1-s32max
BUF_SIZE 0 prog s32min-(-2),1-s32max
CAPPED_DATA 0 prog->aux->attach_btf_id 1
CAPPED_DATA 0 prog->expected_attach_type 1
DATA_SOURCE 0 prog r bpf_prog_get
NOCHECK_CALL
LOCK2 &st_map->lock
TYPE_LOCK (struct bpf_struct_ops_map)->lock