Home
last modified time | relevance | path

Searched refs:target_fd (Results 1 – 17 of 17) sorted by relevance

/OK3568_Linux_fs/kernel/tools/testing/selftests/proc/
H A Dfd-001-lookup.c102 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()
/OK3568_Linux_fs/kernel/tools/hv/
H A Dhv_fcopy_daemon.c24 static int target_fd; variable
74 target_fd = open(target_fname, in hv_start_fcopy()
76 if (target_fd == -1) { in hv_start_fcopy()
93 bytes_written = pwrite(target_fd, cpmsg->data, cpmsg->size, in hv_copy_data()
125 close(target_fd); in hv_copy_finished()
131 close(target_fd); in hv_copy_cancel()
/OK3568_Linux_fs/kernel/tools/lib/bpf/
H A Dbpf.c533 int bpf_prog_attach(int prog_fd, int target_fd, enum bpf_attach_type type, in bpf_prog_attach() argument
540 return bpf_prog_attach_xattr(prog_fd, target_fd, type, &opts); in bpf_prog_attach()
543 int bpf_prog_attach_xattr(int prog_fd, int target_fd, in bpf_prog_attach_xattr() argument
553 attr.target_fd = target_fd; in bpf_prog_attach_xattr()
562 int bpf_prog_detach(int target_fd, enum bpf_attach_type type) in bpf_prog_detach() argument
567 attr.target_fd = target_fd; in bpf_prog_detach()
573 int bpf_prog_detach2(int prog_fd, int target_fd, enum bpf_attach_type type) in bpf_prog_detach2() argument
578 attr.target_fd = target_fd; in bpf_prog_detach2()
585 int bpf_link_create(int prog_fd, int target_fd, in bpf_link_create() argument
603 attr.link_create.target_fd = target_fd; in bpf_link_create()
[all …]
H A Dbpf.h181 LIBBPF_API int bpf_link_create(int prog_fd, int target_fd,
234 LIBBPF_API int bpf_prog_query(int target_fd, enum bpf_attach_type type,
H A Dlibbpf.h266 int target_fd, const char *attach_func_name);
H A Dlibbpf.c9708 bpf_program__attach_fd(struct bpf_program *prog, int target_fd, int btf_id, in bpf_program__attach_fd() argument
9730 link_fd = bpf_link_create(prog_fd, target_fd, attach_type, &opts); in bpf_program__attach_fd()
9762 int target_fd, in bpf_program__attach_freplace() argument
9767 if (!!target_fd != !!attach_func_name) { in bpf_program__attach_freplace()
9779 if (target_fd) { in bpf_program__attach_freplace()
9780 btf_id = libbpf_find_prog_btf_id(attach_func_name, target_fd); in bpf_program__attach_freplace()
9784 return bpf_program__attach_fd(prog, target_fd, btf_id, "freplace"); in bpf_program__attach_freplace()
9801 __u32 target_fd = 0; in bpf_program__attach_iter() local
9820 link_fd = bpf_link_create(prog_fd, target_fd, BPF_TRACE_ITER, in bpf_program__attach_iter()
/OK3568_Linux_fs/kernel/drivers/media/rc/
H A Dbpf-lirc.c252 rcdev = rc_dev_get_from_fd(attr->target_fd); in lirc_prog_attach()
277 rcdev = rc_dev_get_from_fd(attr->target_fd); in lirc_prog_detach()
302 rcdev = rc_dev_get_from_fd(attr->query.target_fd); in lirc_prog_query()
/OK3568_Linux_fs/kernel/kernel/bpf/
H A Dnet_namespace.c284 net = get_net_ns_by_fd(attr->query.target_fd); in netns_bpf_prog_query()
304 if (attr->target_fd || attr->attach_flags || attr->replace_bpf_fd) in netns_bpf_prog_attach()
388 if (attr->target_fd) in netns_bpf_prog_detach()
493 net = get_net_ns_by_fd(attr->link_create.target_fd); in netns_bpf_link_create()
H A Dcgroup.c821 cgrp = cgroup_get_from_fd(attr->target_fd); in cgroup_bpf_prog_attach()
849 cgrp = cgroup_get_from_fd(attr->target_fd); in cgroup_bpf_prog_detach()
966 cgrp = cgroup_get_from_fd(attr->link_create.target_fd); in cgroup_bpf_link_attach()
1006 cgrp = cgroup_get_from_fd(attr->query.target_fd); in cgroup_bpf_prog_query()
H A Dbpf_iter.c473 if (attr->link_create.target_fd || attr->link_create.flags) in bpf_iter_link_attach()
H A Dsyscall.c4051 attr->link_create.target_fd, in tracing_bpf_link_attach()
/OK3568_Linux_fs/kernel/tools/include/uapi/linux/
H A Dbpf.h569 __u32 target_fd; /* container object to attach to */ member
621 __u32 target_fd; /* container object to query */ member
661 __u32 target_fd; /* object to attach to */ member
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Dbpf.h569 __u32 target_fd; /* container object to attach to */ member
621 __u32 target_fd; /* container object to query */ member
661 __u32 target_fd; /* object to attach to */ member
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/
H A Dbpf.h347 __u32 target_fd; /* container object to attach to */ member
382 __u32 target_fd; /* container object to query */ member
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/
H A Dbpf.h347 __u32 target_fd; /* container object to attach to */ member
382 __u32 target_fd; /* container object to query */ member
/OK3568_Linux_fs/kernel/Documentation/bpf/
H A Dprog_sk_lookup.rst38 netns FD as attachment ``target_fd``.
/OK3568_Linux_fs/kernel/net/core/
H A Dsock_map.c69 u32 ufd = attr->target_fd; in sock_map_get_from_fd()
88 u32 ufd = attr->target_fd; in sock_map_prog_detach()