| /freebsd-13.1/sys/kern/ |
| H A D | sys_eventfd.c | 114 struct eventfd *efd; in eventfd_create_file() local 120 efd = malloc(sizeof(*efd), M_EVENTFD, M_WAITOK | M_ZERO); in eventfd_create_file() 124 knlist_init_mtx(&efd->efd_sel.si_note, &efd->efd_lock); in eventfd_create_file() 139 efd = fp->f_data; in eventfd_close() 159 efd = fp->f_data; in eventfd_read() 166 error = mtx_sleep(&efd->efd_count, &efd->efd_lock, PCATCH, in eventfd_read() 173 --efd->efd_count; in eventfd_read() 206 efd = fp->f_data; in eventfd_write() 216 error = mtx_sleep(&efd->efd_count, &efd->efd_lock, in eventfd_write() 240 efd = fp->f_data; in eventfd_poll() [all …]
|
| /freebsd-13.1/usr.bin/gcore/ |
| H A D | gcore.c | 143 int ch, efd, fd, name[4]; in main() local 198 efd = open(binfile, O_RDONLY, 0); in main() 199 if (efd < 0) in main() 203 lseek(efd, 0, SEEK_SET); in main() 204 if (((*d)->ident)(efd, pid, binfile)) { in main() 206 lseek(efd, 0, SEEK_SET); in main() 214 dumper->dump(efd, fd, pid); in main() 216 (void)close(efd); in main()
|
| H A D | extern.h | 38 int (*ident)(int efd, pid_t pid, char *binfile); 39 void (*dump)(int efd, int fd, pid_t pid);
|
| H A D | elfcore.c | 150 elf_ident(int efd, pid_t pid __unused, char *binfile __unused) in elf_ident() argument 156 cnt = read(efd, &hdr, sizeof(hdr)); in elf_ident() 199 elf_coredump(int efd, int fd, pid_t pid) in elf_coredump() argument 251 elf_puthdr(efd, pid, map, hdr, hdrsize, notesz, segoff, seginfo.count); in elf_coredump() 449 elf_puthdr(int efd, pid_t pid, struct map_entry *map, void *hdr, size_t hdrsize, in elf_puthdr() argument 458 cnt = read(efd, &binhdr, sizeof(binhdr)); in elf_puthdr()
|
| /freebsd-13.1/crypto/openssh/ |
| H A D | nchan.c | 339 c->efd != -1 && in chan_is_dead() 342 c->self, c->efd, sshbuf_len(c->extended)); in chan_is_dead() 378 c->self, c->istate, c->ostate, c->sock, c->wfd, c->efd, in chan_shutdown_write() 401 c->self, c->istate, c->ostate, c->sock, c->rfd, c->efd, in chan_shutdown_read() 426 if (c->type == SSH_CHANNEL_LARVAL || c->efd == -1) in chan_shutdown_extended_read() 432 c->self, c->istate, c->ostate, c->sock, c->rfd, c->efd, in chan_shutdown_extended_read() 434 if (channel_close_fd(ssh, c, &c->efd) < 0) { in chan_shutdown_extended_read() 436 "extended fd %d [i%d o%d]: %.100s", c->self, c->efd, in chan_shutdown_extended_read()
|
| H A D | channels.c | 319 if (efd != -1 && efd != rfd && efd != wfd) in channel_register_fds() 325 c->efd = efd; in channel_register_fds() 352 if (efd != -1 && !isatty(efd) && fcntl(efd, F_GETFL) == 0) { in channel_register_fds() 354 set_nonblock(efd); in channel_register_fds() 361 if (efd != -1) in channel_register_fds() 362 set_nonblock(efd); in channel_register_fds() 469 int sock = c->sock, rfd = c->rfd, wfd = c->wfd, efd = c->efd; in channel_close_fds() local 476 if (efd != sock && efd != rfd && efd != wfd) in channel_close_fds() 854 if (c->efd == -1) in channel_format_extended_usage() 2109 if (c->efd == -1 || (!force && !FD_ISSET(c->efd, readset))) [all …]
|
| H A D | channels.h | 137 int efd; /* extended fd */ member 246 (c->efd != -1 || \ 250 c->efd != -1 && (!(c->flags & (CHAN_EOF_RCVD|CHAN_CLOSE_RCVD)) || \
|
| /freebsd-13.1/crypto/openssl/engines/ |
| H A D | e_afalg.c | 153 &aio->efd, &custom); in afalg_setup_async_event_notification() 159 aio->efd = eventfd(0); in afalg_setup_async_event_notification() 160 if (aio->efd == -1) { in afalg_setup_async_event_notification() 172 close(aio->efd); in afalg_setup_async_event_notification() 176 if (fcntl(aio->efd, F_SETFL, O_NONBLOCK) != 0) { in afalg_setup_async_event_notification() 184 aio->efd = eventfd(0); in afalg_setup_async_event_notification() 185 if (aio->efd == -1) { in afalg_setup_async_event_notification() 210 aio->efd = -1; in afalg_init_aio() 250 cb->aio_resfd = aio->efd; in afalg_fin_cipher_aio() 267 r = read(aio->efd, &eval, sizeof(eval)); in afalg_fin_cipher_aio() [all …]
|
| H A D | e_afalg.h | 70 int efd; member
|
| /freebsd-13.1/sys/geom/ |
| H A D | geom_redboot.c | 177 struct fis_image_desc *fd, *efd; in parse_fis_directory() local 183 efd = fd + (bufsize / sizeof(struct fis_image_desc)); in parse_fis_directory() 188 while (fd < efd && fd->name[0] != 0xff) in parse_fis_directory() 190 if (fd == efd) in parse_fis_directory() 201 for (i = 0; fd < efd; i++, fd++) { in parse_fis_directory()
|
| /freebsd-13.1/contrib/elftoolchain/elfcopy/ |
| H A D | main.c | 653 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-13.1/tests/sys/netmap/ |
| H A D | ctrl-api-test.c | 1385 int efd = eventfd(0, 0); in sync_kloop_eventfds() local 1387 evopt->eventfds[i].ioeventfd = efd; in sync_kloop_eventfds() 1388 efd = eventfd(0, 0); in sync_kloop_eventfds() 1389 evopt->eventfds[i].irqfd = efd; in sync_kloop_eventfds()
|
| /freebsd-13.1/contrib/ncurses/ |
| H A D | NEWS | 12970 <perf@efd.lth.se>).
|
| /freebsd-13.1/share/misc/ |
| H A D | pci_vendors | 26125 0efd Xeon E7 v2/Xeon E5 v2/Core i7 DDRIO
|