Home
last modified time | relevance | path

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

/netbsd-src/sys/kern/
H A Dsys_eventfd.c92 struct eventfd * const efd = kmem_zalloc(sizeof(*efd), KM_SLEEP); in eventfd_create() local
94 mutex_init(&efd->efd_lock, MUTEX_DEFAULT, IPL_NONE); in eventfd_create()
95 cv_init(&efd->efd_read_wait, "efdread"); in eventfd_create()
96 cv_init(&efd->efd_write_wait, "efdwrite"); in eventfd_create()
97 selinit(&efd->efd_read_sel); in eventfd_create()
98 selinit(&efd->efd_write_sel); in eventfd_create()
99 efd->efd_val = val; in eventfd_create()
100 efd->efd_is_semaphore = !!(flags & EFD_SEMAPHORE); in eventfd_create()
101 getnanotime(&efd->efd_btime); in eventfd_create()
105 return efd; in eventfd_create()
[all …]
/netbsd-src/tests/lib/libc/sys/
H A Dt_eventfd.c52 int efd; member
144 ATF_REQUIRE(eventfd_read(ctx->efd, &efd_value) == 0); in eventfd_normal_helper()
155 ATF_REQUIRE(eventfd_read(ctx->efd, &efd_value) == 0); in eventfd_normal_helper()
179 ATF_REQUIRE((ctx.efd = eventfd(0, 0)) >= 0); in ATF_TC_BODY()
195 ATF_REQUIRE(eventfd_write(ctx.efd, 0xcafebabe) == 0); in ATF_TC_BODY()
203 ATF_REQUIRE(eventfd_write(ctx.efd, 0x0000cafe) == 0); in ATF_TC_BODY()
204 ATF_REQUIRE(eventfd_write(ctx.efd, 0xbeef0000) == 0); in ATF_TC_BODY()
215 (void) close(ctx.efd); in ATF_TC_BODY()
229 int efd; in ATF_TC_BODY() local
231 ATF_REQUIRE((efd = eventfd(3, EFD_SEMAPHORE | EFD_NONBLOCK)) >= 0); in ATF_TC_BODY()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/engines/
H A De_afalg.c153 &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()
168 aio->efd, custom, 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()
[all …]
H A De_afalg.h70 int efd; member
/netbsd-src/external/gpl2/groff/dist/contrib/mm/
H A DChangeLog379 Tue Dec 14 16:26:36 1993 Joergen Haegg (jh at efd.lth.se)
392 Tue Sep 7 08:37:00 1993 J�rgen H�gg (jh at efd.lth.se)
407 Fri Apr 23 10:37:25 1993 Joergen Haegg (jh at efd.lth.se)
417 Mon Apr 5 09:36:01 1993 Joergen Haegg (jh at efd.lth.se)
428 Mon Mar 29 10:53:13 1993 Joergen Haegg (jh at efd.lth.se)
434 Mon Mar 8 10:27:47 1993 Joergen Haegg (jh at efd.lth.se)
441 Fri Mar 5 15:20:49 1993 Joergen Haegg (jh at efd.lth.se)
447 Fri Mar 5 14:12:43 1993 Joergen Haegg (jh at efd.lth.se)
452 Wed Mar 3 09:21:20 1993 Joergen Haegg (jh at efd.lth.se)
464 Mon Feb 22 12:41:06 1993 Joergen Haegg (jh at efd.lth.se)
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/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
/netbsd-src/lib/libc/sys/
H A Deventfd_write.c43 eventfd_write(int efd, eventfd_t val) in eventfd_write() argument
46 switch (write(efd, &val, sizeof(val))) { in eventfd_write()
H A Deventfd_read.c43 eventfd_read(int efd, eventfd_t *valp) in eventfd_read() argument
47 switch (read(efd, &val, sizeof(val))) { in eventfd_read()