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
298 void bpf_struct_ops_desc_release(struct bpf_struct_ops_desc *st_ops_desc) in bpf_struct_ops_desc_release() argument
303 arg_info = st_ops_desc->arg_info; in bpf_struct_ops_desc_release()
304 for (i = 0; i < btf_type_vlen(st_ops_desc->type); i++) in bpf_struct_ops_desc_release()
331 int bpf_struct_ops_desc_init(struct bpf_struct_ops_desc *st_ops_desc, in bpf_struct_ops_desc_init() argument
335 struct bpf_struct_ops *st_ops = st_ops_desc->st_ops; in bpf_struct_ops_desc_init()
386 st_ops_desc->arg_info = arg_info; in bpf_struct_ops_desc_init()
387 st_ops_desc->type = t; in bpf_struct_ops_desc_init()
388 st_ops_desc->type_id = type_id; in bpf_struct_ops_desc_init()
389 st_ops_desc->value_id = value_id; in bpf_struct_ops_desc_init()
[all …]
H A Dverifier.c23385 const struct bpf_struct_ops_desc *st_ops_desc; in check_struct_ops_btf_id() local
23415 st_ops_desc = bpf_struct_ops_find(btf, btf_id); in check_struct_ops_btf_id()
23416 if (!st_ops_desc) { in check_struct_ops_btf_id()
23421 st_ops = st_ops_desc->st_ops; in check_struct_ops_btf_id()
23423 t = st_ops_desc->type; in check_struct_ops_btf_id()
23464 for (i = 0; i < st_ops_desc->arg_info[member_idx].cnt; i++) { in check_struct_ops_btf_id()
23465 if (st_ops_desc->arg_info[member_idx].info->refcounted) { in check_struct_ops_btf_id()
23488 return bpf_prog_ctx_arg_info_init(prog, st_ops_desc->arg_info[member_idx].info, in check_struct_ops_btf_id()
23489 st_ops_desc->arg_info[member_idx].cnt); in check_struct_ops_btf_id()
/linux/include/linux/
H A Dbpf.h2031 int bpf_struct_ops_desc_init(struct bpf_struct_ops_desc *st_ops_desc,
2035 void bpf_struct_ops_desc_release(struct bpf_struct_ops_desc *st_ops_desc);
2064 static inline void bpf_struct_ops_desc_release(struct bpf_struct_ops_desc *st_ops_desc) in bpf_struct_ops_desc_release() argument