Home
last modified time | relevance | path

Searched refs:st_ops_desc (Results 1 – 3 of 3) sorted by relevance

/linux/kernel/bpf/
H A Dbpf_struct_ops.c26 const struct bpf_struct_ops_desc *st_ops_desc; member
301 void bpf_struct_ops_desc_release(struct bpf_struct_ops_desc *st_ops_desc) in bpf_struct_ops_desc_release() argument
306 arg_info = st_ops_desc->arg_info; in bpf_struct_ops_desc_release()
307 for (i = 0; i < btf_type_vlen(st_ops_desc->type); i++) in bpf_struct_ops_desc_release()
327 int bpf_struct_ops_desc_init(struct bpf_struct_ops_desc *st_ops_desc, in bpf_struct_ops_desc_init() argument
331 struct bpf_struct_ops *st_ops = st_ops_desc->st_ops; in bpf_struct_ops_desc_init()
382 st_ops_desc->arg_info = arg_info; in bpf_struct_ops_desc_init()
383 st_ops_desc->type = t; in bpf_struct_ops_desc_init()
384 st_ops_desc->type_id = type_id; in bpf_struct_ops_desc_init()
385 st_ops_desc->value_id = value_id; in bpf_struct_ops_desc_init()
[all …]
H A Dverifier.c22398 const struct bpf_struct_ops_desc *st_ops_desc; in check_struct_ops_btf_id() local
22427 st_ops_desc = bpf_struct_ops_find(btf, btf_id); in check_struct_ops_btf_id()
22428 if (!st_ops_desc) { in check_struct_ops_btf_id()
22433 st_ops = st_ops_desc->st_ops; in check_struct_ops_btf_id()
22435 t = st_ops_desc->type; in check_struct_ops_btf_id()
22477 st_ops_desc->arg_info[member_idx].info; in check_struct_ops_btf_id()
22479 st_ops_desc->arg_info[member_idx].cnt; in check_struct_ops_btf_id()
/linux/include/linux/
H A Dbpf.h1909 int bpf_struct_ops_desc_init(struct bpf_struct_ops_desc *st_ops_desc,
1913 void bpf_struct_ops_desc_release(struct bpf_struct_ops_desc *st_ops_desc);
1942 static inline void bpf_struct_ops_desc_release(struct bpf_struct_ops_desc *st_ops_desc) in bpf_struct_ops_desc_release() argument