Home
last modified time | relevance | path

Searched refs:bpf_ops (Results 1 – 6 of 6) sorted by relevance

/linux/net/sched/
H A Dact_bpf.c27 struct sock_filter *bpf_ops; member
94 return !prog->bpf_ops; in tcf_bpf_is_ebpf()
110 memcpy(nla_data(nla), prog->bpf_ops, nla_len(nla)); in tcf_bpf_dump_bpf_info()
187 struct sock_filter *bpf_ops; in tcf_bpf_init_from_ops() local
197 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in tcf_bpf_init_from_ops()
201 bpf_ops = kmemdup(nla_data(tb[TCA_ACT_BPF_OPS]), bpf_size, GFP_KERNEL); in tcf_bpf_init_from_ops()
202 if (bpf_ops == NULL) in tcf_bpf_init_from_ops()
206 fprog_tmp.filter = bpf_ops; in tcf_bpf_init_from_ops()
210 kfree(bpf_ops); in tcf_bpf_init_from_ops()
214 cfg->bpf_ops = bpf_ops; in tcf_bpf_init_from_ops()
[all …]
H A Dcls_bpf.c48 struct sock_filter *bpf_ops; member
140 return !prog->bpf_ops; in cls_bpf_is_ebpf()
266 kfree(prog->bpf_ops); in cls_bpf_free_parms()
341 struct sock_filter *bpf_ops; in cls_bpf_prog_from_ops() local
351 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in cls_bpf_prog_from_ops()
355 bpf_ops = kmemdup(nla_data(tb[TCA_BPF_OPS]), bpf_size, GFP_KERNEL_ACCOUNT); in cls_bpf_prog_from_ops()
356 if (bpf_ops == NULL) in cls_bpf_prog_from_ops()
360 fprog_tmp.filter = bpf_ops; in cls_bpf_prog_from_ops()
364 kfree(bpf_ops); in cls_bpf_prog_from_ops()
368 prog->bpf_ops in cls_bpf_prog_from_ops()
[all...]
/linux/io_uring/
H A Dbpf-ops.c190 if (ctx->bpf_ops) in bpf_io_reg()
198 ctx->bpf_ops = ops; in bpf_io_reg()
226 struct io_uring_bpf_ops *ops = ctx->bpf_ops; in bpf_io_unreg()
234 ctx->bpf_ops = NULL; in io_unregister_bpf_ops()
247 if (WARN_ON_ONCE(ctx->bpf_ops != ops)) in io_unregister_bpf_ops()
257 * ->bpf_ops is write protected by io_bpf_ctrl_mutex and uring_lock,
262 if (!ctx->bpf_ops)
268 if (ctx->bpf_ops) in io_uring_bpf_init()
/linux/include/net/tc_act/
H A Dtc_bpf.h19 struct sock_filter *bpf_ops; member
/linux/fs/
H A Dbinfmt_misc.c120 const struct binfmt_misc_ops *bpf_ops; /* bpf-backed handler ('B') */ member
209 if (!e->bpf_ops->match(bprm)) in search_binfmt_handler()
364 if (e->bpf_ops) in bm_entry_free_rcu()
365 binfmt_misc_put_ops(e->bpf_ops); in bm_entry_free_rcu()
462 retval = e->bpf_ops->load(bprm); in entry_select_interpreter()
1075 seq_printf(m, "bpf %s\n", e->bpf_ops->name); in bm_entry_show()
1479 e->bpf_ops = binfmt_misc_get_ops(sb->s_user_ns, e->bpf_ops_name); in bm_register_write()
1480 if (!e->bpf_ops) { in bm_register_write()
/linux/include/linux/
H A Dio_uring_types.h553 struct io_uring_bpf_ops *bpf_ops;
540 struct io_uring_bpf_ops *bpf_ops; global() member