Home
last modified time | relevance | path

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

/freebsd/sys/kern/
H A Dsys_eventfd.c108 struct eventfd *efd; in eventfd_create_file() local
114 efd = malloc(sizeof(*efd), M_EVENTFD, M_WAITOK | M_ZERO); in eventfd_create_file()
115 efd->efd_flags = flags; in eventfd_create_file()
116 efd->efd_count = initval; in eventfd_create_file()
117 mtx_init(&efd->efd_lock, "eventfd", NULL, MTX_DEF); in eventfd_create_file()
118 knlist_init_mtx(&efd->efd_sel.si_note, &efd->efd_lock); in eventfd_create_file()
123 finit(fp, fflags, DTYPE_EVENTFD, efd, &eventfdops); in eventfd_create_file()
131 struct eventfd *efd; in eventfd_close() local
133 efd = fp->f_data; in eventfd_close()
134 seldrain(&efd->efd_sel); in eventfd_close()
[all …]
/freebsd/usr.bin/gcore/
H A Dgcore.c129 int ch, efd, fd, name[4]; in main() local
184 efd = open(binfile, O_RDONLY, 0); in main()
185 if (efd < 0) in main()
189 lseek(efd, 0, SEEK_SET); in main()
190 if (((*d)->ident)(efd, pid, binfile)) { in main()
192 lseek(efd, 0, SEEK_SET); in main()
200 dumper->dump(efd, fd, pid); in main()
202 (void)close(efd); in main()
H A Dextern.h35 int (*ident)(int efd, pid_t pid, char *binfile);
36 void (*dump)(int efd, int fd, pid_t pid);
H A Delfcore.c127 elf_ident(int efd, pid_t pid __unused, char *binfile __unused) in elf_ident() argument
133 cnt = read(efd, &hdr, sizeof(hdr)); in elf_ident()
176 elf_coredump(int efd, int fd, pid_t pid) in elf_coredump() argument
228 elf_puthdr(efd, pid, map, hdr, hdrsize, notesz, segoff, seginfo.count); in elf_coredump()
466 elf_puthdr(int efd, pid_t pid, struct map_entry *map, void *hdr, size_t hdrsize, in elf_puthdr() argument
475 cnt = read(efd, &binhdr, sizeof(binhdr)); in elf_puthdr()
/freebsd/crypto/openssh/
H A Dnchan.c345 c->efd != -1 && in chan_is_dead()
348 c->self, c->efd, sshbuf_len(c->extended)); in chan_is_dead()
384 c->self, c->istate, c->ostate, c->sock, c->wfd, c->efd, in chan_shutdown_write()
407 c->self, 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, c->istate, c->ostate, c->sock, c->rfd, c->efd, in chan_shutdown_extended_read()
440 if (channel_close_fd(ssh, c, &c->efd) < 0) { in chan_shutdown_extended_read()
442 "extended fd %d [i%d o%d]: %.100s", c->self, c->efd, in chan_shutdown_extended_read()
H A Dchannels.c417 channel_register_fds(struct ssh *ssh, Channel *c, int rfd, int wfd, int efd, in channel_register_fds() argument
426 if (efd != -1 && efd != rfd && efd != wfd) in channel_register_fds()
427 (void)fcntl(efd, F_SETFD, FD_CLOEXEC); in channel_register_fds()
432 c->efd = efd; in channel_register_fds()
463 if (efd != -1 && !isatty(efd) && in channel_register_fds()
464 (val = fcntl(efd, F_GETFL)) != -1 && !(val & O_NONBLOCK)) { in channel_register_fds()
467 set_nonblock(efd); in channel_register_fds()
474 if (efd != -1) in channel_register_fds()
475 set_nonblock(efd); in channel_register_fds()
485 channel_new(struct ssh *ssh, char *ctype, int type, int rfd, int wfd, int efd, in channel_new() argument
[all …]
H A Dchannels.h136 int efd; /* extended fd */ member
273 (c->efd != -1 || \
277 c->efd != -1 && (!(c->flags & (CHAN_EOF_RCVD|CHAN_CLOSE_RCVD)) || \
/freebsd/crypto/openssl/engines/
H A De_afalg.c201 &aio->efd, &custom); in afalg_setup_async_event_notification()
207 aio->efd = eventfd(0); in afalg_setup_async_event_notification()
208 if (aio->efd == -1) { in afalg_setup_async_event_notification()
216 aio->efd, custom, in afalg_setup_async_event_notification()
220 close(aio->efd); in afalg_setup_async_event_notification()
224 if (fcntl(aio->efd, F_SETFL, O_NONBLOCK) != 0) { in afalg_setup_async_event_notification()
232 aio->efd = eventfd(0); in afalg_setup_async_event_notification()
233 if (aio->efd == -1) { in afalg_setup_async_event_notification()
258 aio->efd = -1; in afalg_init_aio()
298 cb->aio_resfd = aio->efd; in afalg_fin_cipher_aio()
[all …]
H A De_afalg.h70 int efd; member
/freebsd/contrib/elftoolchain/elfcopy/
H A Dmain.c653 int efd, ifd, ofd, ofd0, tfd; in create_file() local
702 create_tempfile(src, &elftemp, &efd); in create_file()
703 if ((ecp->eout = elf_begin(efd, ELF_C_WRITE, NULL)) == NULL) { in create_file()
730 close(efd); in create_file()
/freebsd/tests/sys/netmap/
H A Dctrl-api-test.c1439 int efd = eventfd(0, 0); in sync_kloop_eventfds() local
1441 evopt->eventfds[i].ioeventfd = efd; in sync_kloop_eventfds()
1442 efd = eventfd(0, 0); in sync_kloop_eventfds()
1443 evopt->eventfds[i].irqfd = efd; in sync_kloop_eventfds()
/freebsd/share/misc/
H A Dusb_vendors15602 0efd Oasis Semiconductor
H A Dpci_vendors29678 0efd Xeon E7 v2/Xeon E5 v2/Core i7 DDRIO
/freebsd/contrib/ncurses/
H A DNEWS14598 <perf@efd.lth.se>).