Home
last modified time | relevance | path

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

12

/external/linux-kselftest/tools/testing/selftests/filesystems/epoll/
Depoll_wakeup_test.c14 int efd[3]; member
38 if (epoll_wait(ctx->efd[0], &e, 1, -1) > 0) in waiter_entry1a()
50 pfd.fd = ctx->efd[0]; in waiter_entry1ap()
53 if (epoll_wait(ctx->efd[0], &e, 1, 0) > 0) in waiter_entry1ap()
65 if (epoll_wait(ctx->efd[0], &e, 1, -1) > 0) in waiter_entry1o()
77 pfd.fd = ctx->efd[0]; in waiter_entry1op()
80 if (epoll_wait(ctx->efd[0], &e, 1, 0) > 0) in waiter_entry1op()
92 if (epoll_wait(ctx->efd[0], events, 2, -1) > 0) in waiter_entry2a()
104 pfd.fd = ctx->efd[0]; in waiter_entry2ap()
107 if (epoll_wait(ctx->efd[0], events, 2, 0) > 0) in waiter_entry2ap()
[all …]
/external/linux-kselftest/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
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()
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()
Dsend_signal.c153 int bytes, efd; in test_send_signal_tracepoint() local
156 efd = open(id_path, O_RDONLY, 0); in test_send_signal_tracepoint()
157 if (CHECK(efd < 0, "tracepoint", in test_send_signal_tracepoint()
162 bytes = read(efd, buf, sizeof(buf)); in test_send_signal_tracepoint()
163 close(efd); in test_send_signal_tracepoint()
/external/rust/crates/nix/test/sys/
Dtest_epoll.rs8 let efd = epoll_create1(EpollCreateFlags::empty()).unwrap(); in test_epoll_errno() localVariable
9 let result = epoll_ctl(efd, EpollOp::EpollCtlDel, 1, None); in test_epoll_errno()
13 let result = epoll_ctl(efd, EpollOp::EpollCtlAdd, 1, None); in test_epoll_errno()
20 let efd = epoll_create1(EpollCreateFlags::empty()).unwrap(); in test_epoll_ctl() localVariable
22 epoll_ctl(efd, EpollOp::EpollCtlAdd, 1, &mut event).unwrap(); in test_epoll_ctl()
23 epoll_ctl(efd, EpollOp::EpollCtlDel, 1, None).unwrap(); in test_epoll_ctl()
/external/grpc-grpc/src/core/lib/iomgr/
Dwakeup_fd_eventfd.cc35 int efd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); in eventfd_create() local
36 if (efd < 0) { in eventfd_create()
39 fd_info->read_fd = efd; in eventfd_create()
73 const int efd = eventfd(0, 0); in eventfd_check_availability() local
74 const int is_available = efd >= 0; in eventfd_check_availability()
75 if (is_available) close(efd); in eventfd_check_availability()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dget_cgroup_id_user.c52 int err, bytes, efd, prog_fd, pmu_fd; in main() local
94 efd = open(buf, O_RDONLY, 0); in main()
95 if (CHECK(efd < 0, "open", "err %d errno %d\n", efd, errno)) in main()
97 bytes = read(efd, buf, sizeof(buf)); in main()
98 close(efd); in main()
/external/llvm-project/compiler-rt/test/msan/Linux/
Deventfd.cpp9 int efd = eventfd(42, 0); in main() local
10 assert(efd >= 0); in main()
13 int ret = eventfd_read(efd, &v); in main()
/external/compiler-rt/test/msan/Linux/
Deventfd.cc9 int efd = eventfd(42, 0); in main() local
10 assert(efd >= 0); in main()
13 int ret = eventfd_read(efd, &v); in main()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/
Dwakeup_fd_eventfd.cc72 const int efd = eventfd(0, 0); in eventfd_check_availability() local
73 const int is_available = efd >= 0; in eventfd_check_availability()
74 if (is_available) close(efd); in eventfd_check_availability()
/external/openssh/
Dnchan.c341 c->efd != -1 && in chan_is_dead()
344 c->self, c->efd, sshbuf_len(c->extended)); in chan_is_dead()
380 c->self, __func__, c->istate, c->ostate, c->sock, c->wfd, c->efd, in chan_shutdown_write()
405 c->self, __func__, c->istate, c->ostate, c->sock, c->rfd, c->efd, in chan_shutdown_read()
432 if (c->type == SSH_CHANNEL_LARVAL || c->efd == -1) in chan_shutdown_extended_read()
438 c->self, __func__, c->istate, c->ostate, c->sock, c->rfd, c->efd, in chan_shutdown_extended_read()
440 if (channel_close_fd(ssh, &c->efd) < 0) { in chan_shutdown_extended_read()
443 c->self, __func__, c->efd, c->istate, c->ostate, in chan_shutdown_extended_read()
Dchannels.c305 channel_register_fds(struct ssh *ssh, Channel *c, int rfd, int wfd, int efd, in channel_register_fds() argument
313 sc->channel_max_fd = MAXIMUM(sc->channel_max_fd, efd); in channel_register_fds()
319 if (efd != -1 && efd != rfd && efd != wfd) in channel_register_fds()
320 fcntl(efd, F_SETFD, FD_CLOEXEC); in channel_register_fds()
325 c->efd = efd; in channel_register_fds()
341 if (efd != -1) in channel_register_fds()
342 set_nonblock(efd); in channel_register_fds()
351 channel_new(struct ssh *ssh, char *ctype, int type, int rfd, int wfd, int efd, in channel_new() argument
388 channel_register_fds(ssh, c, rfd, wfd, efd, extusage, nonblock, 0); in channel_new()
415 max = MAXIMUM(max, c->efd); in channel_find_maxfd()
[all …]
Dchannels.h127 int efd; /* extended fd */ member
232 (c->efd != -1 || \
236 c->efd != -1 && (!(c->flags & (CHAN_EOF_RCVD|CHAN_CLOSE_RCVD)) || \
/external/strace/
Dkcmp.c34 uint32_t efd; member
85 PRINT_FIELD_PIDFD("{", slot, efd, tcp, pid2); in SYS_FUNC()
/external/strace/tests-mx32/
Dkcmp.c71 uint32_t efd; member
131 printpidfd("{efd=", pid2, slot->efd); in do_kcmp()
/external/strace/tests/
Dkcmp.c71 uint32_t efd; member
131 printpidfd("{efd=", pid2, slot->efd); in do_kcmp()
/external/strace/tests-m32/
Dkcmp.c71 uint32_t efd; member
131 printpidfd("{efd=", pid2, slot->efd); in do_kcmp()
/external/kernel-headers/original/uapi/linux/
Dkcmp.h23 __u32 efd; /* epoll file descriptor */ member
/external/libxml2/
Dnanoftp.c1549 fd_set rfd, efd; in xmlNanoFTPCloseConnection() local
1559 FD_ZERO(&efd); in xmlNanoFTPCloseConnection()
1560 FD_SET(ctxt->controlFd, &efd); in xmlNanoFTPCloseConnection()
1561 res = select(ctxt->controlFd + 1, &rfd, NULL, &efd, &tv); in xmlNanoFTPCloseConnection()
1731 fd_set rfd, efd; in xmlNanoFTPList() local
1774 FD_ZERO(&efd); in xmlNanoFTPList()
1775 FD_SET(ctxt->dataFd, &efd); in xmlNanoFTPList()
1776 res = select(ctxt->dataFd + 1, &rfd, NULL, &efd, &tv); in xmlNanoFTPList()
/external/bcc/src/cc/
Dlibbpf.c786 int efd, cpu = 0; in bpf_attach_tracing_event() local
794 efd = open(buf, O_RDONLY | O_CLOEXEC, 0); in bpf_attach_tracing_event()
795 if (efd < 0) { in bpf_attach_tracing_event()
800 bytes = read(efd, buf, sizeof(buf)); in bpf_attach_tracing_event()
803 close(efd); in bpf_attach_tracing_event()
806 close(efd); in bpf_attach_tracing_event()
/external/linux-kselftest/tools/testing/selftests/kcmp/
Dkcmp_test.c139 .efd = epollfd, in main()
/external/elfutils/tests/
Drun-strings-test.sh285 testfile6: efd N10__gnu_test9gnu_obj_2IlEE
328 testfile7: efd N10__gnu_test9gnu_obj_2IlEE
/external/llvm/test/tools/llvm-objdump/X86/
Dmacho-symbolized-disassembly.test27 ObjC-EXE: 0000000100000efd movq 0x124(%rip), %rsi ## Objc selector ref: new
/external/llvm-project/llvm/test/tools/llvm-objdump/MachO/
Dsymbolized-disassembly.test27 ObjC-EXE: 0000000100000efd movq 0x124(%rip), %rsi ## Objc selector ref: new

12