Home
last modified time | relevance | path

Searched refs:efd (Results 1 – 18 of 18) sorted by relevance

/linux-6.6.21/tools/testing/selftests/filesystems/epoll/
Depoll_wakeup_test.c18 int efd[3]; member
55 if (epoll_wait(ctx->efd[0], &e, 1, -1) > 0) in waiter_entry1a()
67 pfd.fd = ctx->efd[0]; in waiter_entry1ap()
70 if (epoll_wait(ctx->efd[0], &e, 1, 0) > 0) in waiter_entry1ap()
82 if (epoll_wait(ctx->efd[0], &e, 1, -1) > 0) in waiter_entry1o()
94 pfd.fd = ctx->efd[0]; in waiter_entry1op()
97 if (epoll_wait(ctx->efd[0], &e, 1, 0) > 0) in waiter_entry1op()
109 if (epoll_wait(ctx->efd[0], events, 2, -1) > 0) in waiter_entry2a()
121 pfd.fd = ctx->efd[0]; in waiter_entry2ap()
124 if (epoll_wait(ctx->efd[0], events, 2, 0) > 0) in waiter_entry2ap()
[all …]
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dtask_fd_query_rawtp.c10 int efd, err, prog_fd; in test_task_fd_query_rawtp() local
18 efd = bpf_raw_tracepoint_open("sys_enter", prog_fd); in test_task_fd_query_rawtp()
19 if (CHECK(efd < 0, "raw_tp_open", "err %d errno %d\n", efd, errno)) in test_task_fd_query_rawtp()
24 err = bpf_task_fd_query(getpid(), efd, 0, buf, &len, &prog_id, in test_task_fd_query_rawtp()
38 err = bpf_task_fd_query(getpid(), efd, 0, buf, &len, &prog_id, in test_task_fd_query_rawtp()
50 err = bpf_task_fd_query(getpid(), efd, 0, 0, &len, &prog_id, in test_task_fd_query_rawtp()
62 err = bpf_task_fd_query(getpid(), efd, 0, buf, &len, &prog_id, in test_task_fd_query_rawtp()
Dtask_fd_query_tp.c8 int err, bytes, efd, prog_fd, pmu_fd; in test_task_fd_query_tp_core() local
27 efd = open(buf, O_RDONLY, 0); in test_task_fd_query_tp_core()
28 if (CHECK(efd < 0, "open", "err %d errno %d\n", efd, errno)) in test_task_fd_query_tp_core()
30 bytes = read(efd, buf, sizeof(buf)); in test_task_fd_query_tp_core()
31 close(efd); in test_task_fd_query_tp_core()
Dtp_attach_query.c7 int i, j, bytes, efd, err, prog_fd[num_progs], pmu_fd[num_progs]; in serial_test_tp_attach_query() local
26 efd = open(buf, O_RDONLY, 0); in serial_test_tp_attach_query()
27 if (CHECK(efd < 0, "open", "err %d errno %d\n", efd, errno)) in serial_test_tp_attach_query()
29 bytes = read(efd, buf, sizeof(buf)); in serial_test_tp_attach_query()
30 close(efd); in serial_test_tp_attach_query()
/linux-6.6.21/tools/cgroup/
Dcgroup_event_listener.c24 int efd = -1; in main() local
47 efd = eventfd(0, 0); in main()
48 if (efd == -1) in main()
51 ret = snprintf(line, LINE_MAX, "%d %d %s", efd, cfd, argv[2]); in main()
62 ret = read(efd, &result, sizeof(result)); in main()
/linux-6.6.21/tools/testing/selftests/bpf/
Dget_cgroup_id_user.c52 int err, bytes, efd, prog_fd, pmu_fd; in main() local
96 efd = open(buf, O_RDONLY, 0); in main()
97 if (CHECK(efd < 0, "open", "err %d errno %d\n", efd, errno)) in main()
99 bytes = read(efd, buf, sizeof(buf)); in main()
100 close(efd); in main()
/linux-6.6.21/drivers/scsi/
Dses.c500 struct efd { struct
508 struct efd *efd = data; in ses_enclosure_find_by_addr() local
514 if (scomp->addr != efd->addr) in ses_enclosure_find_by_addr()
517 if (enclosure_add_device(edev, i, efd->dev) == 0) in ses_enclosure_find_by_addr()
518 kobject_uevent(&efd->dev->kobj, KOBJ_CHANGE); in ses_enclosure_find_by_addr()
648 struct efd efd = { in ses_match_to_enclosure() local
656 efd.addr = sas_get_address(sdev); in ses_match_to_enclosure()
658 if (efd.addr) { in ses_match_to_enclosure()
659 efd.dev = &sdev->sdev_gendev; in ses_match_to_enclosure()
661 enclosure_for_each_device(ses_enclosure_find_by_addr, &efd); in ses_match_to_enclosure()
/linux-6.6.21/tools/perf/bench/
Depoll-wait.c191 int efd = multiq ? w->epollfd : epollfd; in workerfn() local
208 ret = epoll_wait(efd, &ev, 1, to); in workerfn()
221 ret = epoll_ctl(efd, EPOLL_CTL_ADD, fd, &ev); in workerfn()
227 ret = epoll_ctl(efd, EPOLL_CTL_MOD, fd, &ev); in workerfn()
244 int efd = multiq ? w->epollfd : epollfd; in nest_epollfd() local
268 if (epoll_ctl(efd, EPOLL_CTL_ADD, *epollfdp, &ev) < 0) in nest_epollfd()
335 int efd = multiq ? w->epollfd : epollfd; in do_threads() local
345 ret = epoll_ctl(efd, EPOLL_CTL_ADD, in do_threads()
/linux-6.6.21/mm/
Dvmpressure.c151 struct eventfd_ctx *efd; member
172 eventfd_signal(ev->efd, 1); in vmpressure_event()
411 ev->efd = eventfd; in vmpressure_register_event()
443 if (ev->efd != eventfd) in vmpressure_unregister_event()
Dmemcontrol.c4864 unsigned int efd, cfd; in memcg_write_event_control() local
4877 efd = simple_strtoul(buf, &endp, 10); in memcg_write_event_control()
4897 efile = fdget(efd); in memcg_write_event_control()
/linux-6.6.21/samples/bpf/
Dtask_fd_query_user.c234 int err = -1, res, kfd, efd; in test_debug_fs_uprobe() local
257 efd = open(buf, O_RDONLY, 0); in test_debug_fs_uprobe()
258 CHECK_PERROR_RET(efd < 0); in test_debug_fs_uprobe()
260 bytes = read(efd, buf, sizeof(buf)); in test_debug_fs_uprobe()
262 close(efd); in test_debug_fs_uprobe()
/linux-6.6.21/include/uapi/linux/
Dkcmp.h23 __u32 efd; /* epoll file descriptor */ member
/linux-6.6.21/tools/include/uapi/linux/
Dkcmp.h23 __u32 efd; /* epoll file descriptor */ member
/linux-6.6.21/tools/testing/selftests/connector/
Dproc_filter.c82 int register_proc_netlink(int *efd, void *input) in register_proc_netlink() argument
125 *efd = epoll_fd; in register_proc_netlink()
/linux-6.6.21/tools/testing/selftests/kcmp/
Dkcmp_test.c142 .efd = epollfd, in main()
/linux-6.6.21/kernel/
Dkcmp.c113 filp_epoll = fget_task(task2, slot.efd); in kcmp_epoll_target()
/linux-6.6.21/tools/testing/selftests/iommu/
Diommufd.c896 int efd; in TEST_F() local
901 efd = eventfd(0, EFD_CLOEXEC); in TEST_F()
902 ASSERT_NE(-1, efd); in TEST_F()
913 if (write(efd, &one, sizeof(one)) != sizeof(one)) in TEST_F()
921 ASSERT_EQ(8, read(efd, &tmp, sizeof(tmp))); in TEST_F()
/linux-6.6.21/Documentation/trace/
Dtracepoint-analysis.rst324 0.00 : 34efd: ff