Searched refs:target_fd (Results 1 – 10 of 10) sorted by relevance
/Linux-v4.19/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-v4.19/tools/hv/ |
D | hv_fcopy_daemon.c | 33 static int target_fd; variable 83 target_fd = open(target_fname, in hv_start_fcopy() 85 if (target_fd == -1) { in hv_start_fcopy() 100 bytes_written = pwrite(target_fd, cpmsg->data, cpmsg->size, in hv_copy_data() 122 close(target_fd); in hv_copy_finished() 127 close(target_fd); in hv_copy_cancel()
|
/Linux-v4.19/tools/lib/bpf/ |
D | bpf.c | 333 int bpf_prog_attach(int prog_fd, int target_fd, enum bpf_attach_type type, in bpf_prog_attach() argument 339 attr.target_fd = target_fd; in bpf_prog_attach() 347 int bpf_prog_detach(int target_fd, enum bpf_attach_type type) in bpf_prog_detach() argument 352 attr.target_fd = target_fd; in bpf_prog_detach() 358 int bpf_prog_detach2(int prog_fd, int target_fd, enum bpf_attach_type type) in bpf_prog_detach2() argument 363 attr.target_fd = target_fd; in bpf_prog_detach2() 370 int bpf_prog_query(int target_fd, enum bpf_attach_type type, __u32 query_flags, in bpf_prog_query() argument 377 attr.query.target_fd = target_fd; in bpf_prog_query()
|
D | bpf.h | 106 int bpf_prog_query(int target_fd, enum bpf_attach_type type, __u32 query_flags,
|
/Linux-v4.19/drivers/media/rc/ |
D | bpf-lirc.c | 221 rcdev = rc_dev_get_from_fd(attr->target_fd); in lirc_prog_attach() 246 rcdev = rc_dev_get_from_fd(attr->target_fd); in lirc_prog_detach() 271 rcdev = rc_dev_get_from_fd(attr->query.target_fd); in lirc_prog_query()
|
/Linux-v4.19/kernel/bpf/ |
D | cgroup.c | 457 cgrp = cgroup_get_from_fd(attr->target_fd); in cgroup_bpf_prog_attach() 473 cgrp = cgroup_get_from_fd(attr->target_fd); in cgroup_bpf_prog_detach() 495 cgrp = cgroup_get_from_fd(attr->query.target_fd); in cgroup_bpf_prog_query()
|
D | sockmap.c | 2084 int ufd = attr->target_fd; in sockmap_get_from_fd()
|
/Linux-v4.19/drivers/android/ |
D | binder.c | 2457 int target_fd; in binder_translate_fd() local 2488 target_fd = task_get_unused_fd_flags(target_proc, O_CLOEXEC); in binder_translate_fd() 2489 if (target_fd < 0) { in binder_translate_fd() 2493 task_fd_install(target_proc, target_fd, file); in binder_translate_fd() 2494 trace_binder_transaction_fd(t, fd, target_fd); in binder_translate_fd() 2496 fd, target_fd); in binder_translate_fd() 2498 return target_fd; in binder_translate_fd() 2515 int target_fd; in binder_translate_fd_array() local 2547 target_fd = binder_translate_fd(fd_array[fdi], t, thread, in binder_translate_fd_array() 2549 if (target_fd < 0) in binder_translate_fd_array() [all …]
|
/Linux-v4.19/tools/include/uapi/linux/ |
D | bpf.h | 341 __u32 target_fd; /* container object to attach to */ member 376 __u32 target_fd; /* container object to query */ member
|
/Linux-v4.19/include/uapi/linux/ |
D | bpf.h | 341 __u32 target_fd; /* container object to attach to */ member 376 __u32 target_fd; /* container object to query */ member
|