Searched refs:attach_flags (Results 1 – 9 of 9) sorted by relevance
/Linux-v4.19/tools/bpf/bpftool/ |
D | cgroup.c | 116 __u32 attach_flags; in show_attached_bpf_progs() local 121 ret = bpf_prog_query(cgroup_fd, type, 0, &attach_flags, prog_ids, in show_attached_bpf_progs() 129 switch (attach_flags) { in show_attached_bpf_progs() 140 snprintf(buf, sizeof(buf), "unknown(%x)", attach_flags); in show_attached_bpf_progs() 337 int attach_flags = 0; in do_attach() local 366 attach_flags |= BPF_F_ALLOW_MULTI; in do_attach() 368 attach_flags |= BPF_F_ALLOW_OVERRIDE; in do_attach() 375 if (bpf_prog_attach(prog_fd, cgroup_fd, attach_type, attach_flags)) { in do_attach()
|
/Linux-v4.19/samples/bpf/ |
D | test_cgrp2_attach2.c | 265 __u32 prog_ids[4], prog_cnt = 0, attach_flags, saved_prog_id; in test_multiprog() local 346 &attach_flags, prog_ids, &prog_cnt) == 0); in test_multiprog() 348 assert(attach_flags == 0); in test_multiprog() 354 &attach_flags, prog_ids, &prog_cnt) == -1 && in test_multiprog() 406 &attach_flags, prog_ids, &prog_cnt) == 0); in test_multiprog() 408 assert(attach_flags == 0); in test_multiprog()
|
/Linux-v4.19/drivers/media/rc/ |
D | bpf-lirc.c | 218 if (attr->attach_flags) in lirc_prog_attach() 238 if (attr->attach_flags) in lirc_prog_detach() 292 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) { in lirc_prog_query()
|
/Linux-v4.19/tools/lib/bpf/ |
D | bpf.c | 342 attr.attach_flags = flags; in bpf_prog_attach() 371 __u32 *attach_flags, __u32 *prog_ids, __u32 *prog_cnt) in bpf_prog_query() argument 384 if (attach_flags) in bpf_prog_query() 385 *attach_flags = attr.query.attach_flags; in bpf_prog_query()
|
D | bpf.h | 107 __u32 *attach_flags, __u32 *prog_ids, __u32 *prog_cnt);
|
/Linux-v4.19/tools/include/uapi/linux/ |
D | bpf.h | 344 __u32 attach_flags; member 379 __u32 attach_flags; member
|
/Linux-v4.19/include/uapi/linux/ |
D | bpf.h | 344 __u32 attach_flags; member 379 __u32 attach_flags; member
|
/Linux-v4.19/kernel/bpf/ |
D | cgroup.c | 420 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) in __cgroup_bpf_query() 462 attr->attach_flags); in cgroup_bpf_prog_attach()
|
D | syscall.c | 1565 #define BPF_PROG_ATTACH_LAST_FIELD attach_flags 1582 if (attr->attach_flags & ~BPF_F_ATTACH_MASK) in bpf_prog_attach()
|