Home
last modified time | relevance | path

Searched refs:efd (Results 1 - 25 of 39) sorted by relevance

12

/kernel/linux/linux-6.6/tools/testing/selftests/filesystems/epoll/
H A 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[ in waiter_entry2ap()
165 int efd; TEST() local
196 int efd; TEST() local
227 int efd; TEST() local
265 int efd; TEST() local
303 int efd; TEST() local
342 int efd; TEST() local
382 int efd; TEST() local
428 int efd; TEST() local
844 int efd[2]; TEST() local
884 int efd[2]; TEST() local
924 int efd[2]; TEST() local
964 int efd[2]; TEST() local
1004 int efd[2]; TEST() local
1052 int efd[2]; TEST() local
1100 int efd[2]; TEST() local
1148 int efd[2]; TEST() local
2470 int efd[3]; TEST() local
2524 int efd[3]; TEST() local
2578 int efd[3]; TEST() local
2640 int efd[3]; TEST() local
3398 int efd; TEST() local
3426 int efd; TEST() local
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/filesystems/epoll/
H A Depoll_wakeup_test.c16 int efd[3]; member
40 if (epoll_wait(ctx->efd[0], &e, 1, -1) > 0) in waiter_entry1a()
52 pfd.fd = ctx->efd[0]; in waiter_entry1ap()
55 if (epoll_wait(ctx->efd[0], &e, 1, 0) > 0) in waiter_entry1ap()
67 if (epoll_wait(ctx->efd[0], &e, 1, -1) > 0) in waiter_entry1o()
79 pfd.fd = ctx->efd[0]; in waiter_entry1op()
82 if (epoll_wait(ctx->efd[0], &e, 1, 0) > 0) in waiter_entry1op()
94 if (epoll_wait(ctx->efd[0], events, 2, -1) > 0) in waiter_entry2a()
106 pfd.fd = ctx->efd[0]; in waiter_entry2ap()
109 if (epoll_wait(ctx->efd[ in waiter_entry2ap()
150 int efd; TEST() local
181 int efd; TEST() local
212 int efd; TEST() local
250 int efd; TEST() local
288 int efd; TEST() local
327 int efd; TEST() local
367 int efd; TEST() local
413 int efd; TEST() local
829 int efd[2]; TEST() local
869 int efd[2]; TEST() local
909 int efd[2]; TEST() local
949 int efd[2]; TEST() local
989 int efd[2]; TEST() local
1037 int efd[2]; TEST() local
1085 int efd[2]; TEST() local
1133 int efd[2]; TEST() local
2455 int efd[3]; TEST() local
2509 int efd[3]; TEST() local
2563 int efd[3]; TEST() local
2625 int efd[3]; TEST() local
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A 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()
22 /* query (getpid(), efd) */ 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()
H A Dtask_fd_query_tp.c8 int err, bytes, efd, prog_fd, pmu_fd; in test_task_fd_query_tp_core() local
22 efd = open(buf, O_RDONLY, 0); in test_task_fd_query_tp_core()
23 if (CHECK(efd < 0, "open", "err %d errno %d\n", efd, errno)) in test_task_fd_query_tp_core()
25 bytes = read(efd, buf, sizeof(buf)); in test_task_fd_query_tp_core()
26 close(efd); in test_task_fd_query_tp_core()
H A Dtp_attach_query.c7 int i, j, bytes, efd, err, prog_fd[num_progs], pmu_fd[num_progs]; in test_tp_attach_query() local
21 efd = open(buf, O_RDONLY, 0); in test_tp_attach_query()
22 if (CHECK(efd < 0, "open", "err %d errno %d\n", efd, errno)) in test_tp_attach_query()
24 bytes = read(efd, buf, sizeof(buf)); in test_tp_attach_query()
25 close(efd); in test_tp_attach_query()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A 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()
22 /* query (getpid(), efd) */ 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()
H A 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()
H A 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()
/kernel/linux/linux-5.10/tools/cgroup/
H A 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()
/kernel/linux/linux-6.6/tools/cgroup/
H A 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()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
H A Dget_cgroup_id_user.c52 int err, bytes, efd, prog_fd, pmu_fd; in main() local
84 efd = open(buf, O_RDONLY, 0); in main()
85 if (CHECK(efd < 0, "open", "err %d errno %d\n", efd, errno)) in main()
87 bytes = read(efd, buf, sizeof(buf)); in main()
88 close(efd); in main()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A 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()
/kernel/linux/linux-5.10/samples/bpf/
H A Dbpf_load.c93 int fd, efd, err, id; in load_and_attach() local
159 efd = bpf_raw_tracepoint_open(event + 15, fd); in load_and_attach()
160 if (efd < 0) { in load_and_attach()
164 event_fd[prog_cnt - 1] = efd; in load_and_attach()
225 efd = open(buf, O_RDONLY, 0); in load_and_attach()
226 if (efd < 0) { in load_and_attach()
231 err = read(efd, buf, sizeof(buf)); in load_and_attach()
237 close(efd); in load_and_attach()
243 efd = sys_perf_event_open(&attr, -1/*pid*/, 0/*cpu*/, -1/*group_fd*/, 0); in load_and_attach()
244 if (efd < in load_and_attach()
[all...]
H A Dtask_fd_query_user.c223 int err, res, kfd, efd; in test_debug_fs_uprobe() local
245 efd = open(buf, O_RDONLY, 0); in test_debug_fs_uprobe()
246 CHECK_PERROR_RET(efd < 0); in test_debug_fs_uprobe()
248 bytes = read(efd, buf, sizeof(buf)); in test_debug_fs_uprobe()
250 close(efd); in test_debug_fs_uprobe()
/kernel/liteos_a/fs/vfs/epoll/
H A Dfs_epoll.c95 int efd = fd - EPOLL_FD_OFFSET; in EpollFreeSysFd() local
97 if ((efd < 0) || (efd >= MAX_EPOLL_FD)) { in EpollFreeSysFd()
103 if (fdset && FD_ISSET(efd, fdset)) { in EpollFreeSysFd()
104 FD_CLR(efd, fdset); in EpollFreeSysFd()
105 g_epPrivBuf[efd] = NULL; in EpollFreeSysFd()
/kernel/linux/linux-5.10/tools/perf/bench/
H A 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()
328 int efd = multiq ? w->epollfd : epollfd; in do_threads() local
338 ret = epoll_ctl(efd, EPOLL_CTL_ADD, in do_threads()
/kernel/linux/linux-6.6/tools/perf/bench/
H A 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()
/kernel/linux/linux-5.10/drivers/scsi/
H A Dses.c494 struct efd { struct
502 struct efd *efd = data; in ses_enclosure_find_by_addr() local
508 if (scomp->addr != efd->addr) in ses_enclosure_find_by_addr()
511 if (enclosure_add_device(edev, i, efd->dev) == 0) in ses_enclosure_find_by_addr()
512 kobject_uevent(&efd->dev->kobj, KOBJ_CHANGE); in ses_enclosure_find_by_addr()
642 struct efd efd = { in ses_match_to_enclosure() local
650 efd.addr = sas_get_address(sdev); in ses_match_to_enclosure()
652 if (efd in ses_match_to_enclosure()
[all...]
/kernel/linux/linux-6.6/drivers/scsi/
H A 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 in ses_match_to_enclosure()
[all...]
/kernel/linux/linux-5.10/mm/
H A Dvmpressure.c152 struct eventfd_ctx *efd; member
173 eventfd_signal(ev->efd, 1); in vmpressure_event()
399 ev->efd = eventfd; in vmpressure_register_event()
431 if (ev->efd != eventfd) in vmpressure_unregister_event()
/kernel/linux/linux-6.6/mm/
H A 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()
/kernel/linux/linux-6.6/samples/bpf/
H A 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()
/kernel/linux/linux-5.10/tools/include/uapi/linux/
H A Dkcmp.h23 __u32 efd; /* epoll file descriptor */ member
/kernel/linux/linux-5.10/include/uapi/linux/
H A Dkcmp.h23 __u32 efd; /* epoll file descriptor */ member
/kernel/linux/linux-6.6/include/uapi/linux/
H A Dkcmp.h23 __u32 efd; /* epoll file descriptor */ member

Completed in 13 milliseconds

12