Searched refs:ksem (Results 1 - 8 of 8) sorted by relevance
/netbsd-current/tests/kernel/ |
H A D | t_ksem.c | 45 #include <sys/ksem.h> 55 intptr_t ksem; local 58 ksem = 0; 59 ATF_REQUIRE_EQ(_ksem_init(0, &ksem), 0); 60 ATF_REQUIRE(_ksem_close(ksem) == -1 && errno == EINVAL); 61 ATF_REQUIRE_EQ(_ksem_destroy(ksem), 0); 72 intptr_t ksem; local 75 ksem = KSEM_PSHARED; 76 ATF_REQUIRE_EQ(_ksem_init(0, &ksem), 0); 77 ATF_REQUIRE(_ksem_close(ksem) 89 intptr_t ksem; local 111 intptr_t ksem, ksem1; local [all...] |
/netbsd-current/sys/sys/ |
H A D | ksem.h | 1 /* $NetBSD: ksem.h,v 1.17 2023/07/11 11:37:29 riastradh Exp $ */ 53 typedef struct ksem { struct 54 LIST_ENTRY(ksem) ks_entry; /* global list entry */ 57 kmutex_t ks_lock; /* lock on this ksem */
|
H A D | file.h | 123 struct ksem *fd_ks; // DTYPE_SEM
|
H A D | Makefile | 30 kcore.h kcov.h kcpuset.h kgdb.h kmem.h ksem.h ksyms.h ktrace.h \
|
/netbsd-current/sys/kern/ |
H A D | uipc_sem.c | 71 #include <sys/ksem.h> 91 MODULE(MODULE_CLASS_MISC, ksem, NULL); 98 static LIST_HEAD(,ksem) ksem_head __cacheline_aligned; 103 static LIST_HEAD(, ksem) *ksem_pshared_hashtab __cacheline_aligned; 322 ksem_remove_pshared(ksem_t *ksem) argument 325 LIST_REMOVE(ksem, ks_entry); 333 ksem_t *ksem = NULL; local 337 LIST_FOREACH(ksem, &ksem_pshared_hashtab[bucket], ks_entry) { 338 if (ksem->ks_pshared_id == id) { 339 mutex_enter(&ksem 361 ksem_t *ksem = ksem_lookup_pshared_locked(id); local 367 ksem_alloc_pshared_id(ksem_t *ksem) argument 517 ksem_release(ksem_t *ksem, int fd) argument [all...] |
/netbsd-current/sys/compat/netbsd32/ |
H A D | netbsd32_sem.c | 38 #include <sys/ksem.h>
|
/netbsd-current/lib/librt/ |
H A D | sem.c | 91 #include <sys/ksem.h> 212 * So, instead, we return the ksem ID given to us by the kernel. 214 * ksem ID to always be 1 so as to ensure we can always tell
|
/netbsd-current/usr.bin/fstat/ |
H A D | misc.c | 52 #include <sys/ksem.h> 180 (void)printf("* ksem ref=%u, value=%u, waiters=%u, flags=0x%x, "
|
Completed in 126 milliseconds