Searched refs:target_fd (Results 1 – 10 of 10) sorted by relevance
| /Linux-v5.4/tools/testing/selftests/proc/ |
| D | fd-001-lookup.c | 102 unsigned int fd, target_fd; in main() local 156 target_fd = 1023; in main() 157 while (target_fd > 0) { in main() 158 if (dup2(fd, target_fd) == target_fd) in main() 160 target_fd /= 2; in main() 162 assert(target_fd > 0); in main() 164 test_lookup(target_fd); in main() 165 close(target_fd); in main()
|
| /Linux-v5.4/tools/hv/ |
| D | hv_fcopy_daemon.c | 24 static int target_fd; variable 74 target_fd = open(target_fname, in hv_start_fcopy() 76 if (target_fd == -1) { in hv_start_fcopy() 91 bytes_written = pwrite(target_fd, cpmsg->data, cpmsg->size, in hv_copy_data() 113 close(target_fd); in hv_copy_finished() 118 close(target_fd); in hv_copy_cancel()
|
| /Linux-v5.4/tools/lib/bpf/ |
| D | bpf.c | 462 int bpf_prog_attach(int prog_fd, int target_fd, enum bpf_attach_type type, in bpf_prog_attach() argument 468 attr.target_fd = target_fd; in bpf_prog_attach() 476 int bpf_prog_detach(int target_fd, enum bpf_attach_type type) in bpf_prog_detach() argument 481 attr.target_fd = target_fd; in bpf_prog_detach() 487 int bpf_prog_detach2(int prog_fd, int target_fd, enum bpf_attach_type type) in bpf_prog_detach2() argument 492 attr.target_fd = target_fd; in bpf_prog_detach2() 499 int bpf_prog_query(int target_fd, enum bpf_attach_type type, __u32 query_flags, in bpf_prog_query() argument 506 attr.query.target_fd = target_fd; in bpf_prog_query()
|
| D | bpf.h | 164 LIBBPF_API int bpf_prog_query(int target_fd, enum bpf_attach_type type,
|
| /Linux-v5.4/drivers/media/rc/ |
| D | bpf-lirc.c | 255 rcdev = rc_dev_get_from_fd(attr->target_fd); in lirc_prog_attach() 280 rcdev = rc_dev_get_from_fd(attr->target_fd); in lirc_prog_detach() 305 rcdev = rc_dev_get_from_fd(attr->query.target_fd); in lirc_prog_query()
|
| /Linux-v5.4/include/uapi/linux/ |
| D | bpf.h | 432 __u32 target_fd; /* container object to attach to */ member 477 __u32 target_fd; /* container object to query */ member
|
| /Linux-v5.4/tools/include/uapi/linux/ |
| D | bpf.h | 432 __u32 target_fd; /* container object to attach to */ member 477 __u32 target_fd; /* container object to query */ member
|
| /Linux-v5.4/kernel/bpf/ |
| D | cgroup.c | 545 cgrp = cgroup_get_from_fd(attr->target_fd); in cgroup_bpf_prog_attach() 561 cgrp = cgroup_get_from_fd(attr->target_fd); in cgroup_bpf_prog_detach() 583 cgrp = cgroup_get_from_fd(attr->query.target_fd); in cgroup_bpf_prog_query()
|
| /Linux-v5.4/net/core/ |
| D | sock_map.c | 65 u32 ufd = attr->target_fd; in sock_map_get_from_fd()
|
| D | flow_dissector.c | 84 net = get_net_ns_by_fd(attr->query.target_fd); in skb_flow_dissector_prog_query()
|