/netbsd/external/gpl2/lvm2/dist/daemons/clvmd/ |
H A D | clvmd-gulm.c | 768 static int _unlock_resource(char *resource, int lockid) in _unlock_resource() argument 835 _unlock_resource(lock1, *lockid); in _sync_lock() 846 status = _unlock_resource(lock2, *lockid); in _sync_lock() 853 status = _unlock_resource(lock1, *lockid); in _sync_lock() 862 *lockid = mode; in _sync_lock() 876 assert(lockid == LCK_EXCL || in _sync_unlock() 877 lockid == LCK_READ || in _sync_unlock() 878 lockid == LCK_PREAD || in _sync_unlock() 879 lockid == LCK_WRITE); in _sync_unlock() 881 status = _unlock_resource(lock1, lockid); in _sync_unlock() [all …]
|
H A D | clvmd-openais.c | 548 static int _unlock_resource(char *resource, int lockid) in _unlock_resource() argument 586 status = _lock_resource(lock1, SA_LCK_EX_LOCK_MODE, flags, lockid); in _sync_lock() 592 lockid); in _sync_lock() 595 _unlock_resource(lock1, *lockid); in _sync_lock() 603 status = _lock_resource(lock1, SA_LCK_PR_LOCK_MODE, flags, lockid); in _sync_lock() 606 _unlock_resource(lock2, *lockid); in _sync_lock() 613 _unlock_resource(lock1, *lockid); in _sync_lock() 622 *lockid = mode; in _sync_lock() 626 static int _sync_unlock(const char *resource, int lockid) in _sync_unlock() argument 635 _unlock_resource(lock1, lockid); in _sync_unlock() [all …]
|
H A D | clvmd-cman.c | 418 static int _sync_lock(const char *resource, int mode, int flags, int *lockid) in _sync_lock() argument 423 if (!lockid) { in _sync_lock() 431 lwait.lksb.sb_lkid = *lockid; in _sync_lock() 451 *lockid = lwait.lksb.sb_lkid; in _sync_lock() 454 DEBUGLOG("sync_lock: returning lkid %x\n", *lockid); in _sync_lock() 461 static int _sync_unlock(const char *resource /* UNUSED */, int lockid) in _sync_unlock() argument 466 DEBUGLOG("sync_unlock: '%s' lkid:%x\n", resource, lockid); in _sync_unlock() 472 status = dlm_ls_unlock(lockspace, lockid, 0, &lwait.lksb, &lwait); in _sync_unlock()
|
H A D | clvmd-corosync.c | 465 static int _lock_resource(const char *resource, int mode, int flags, int *lockid) in _lock_resource() argument 473 lksb.sb_lkid = *lockid; in _lock_resource() 498 *lockid = lksb.sb_lkid; in _lock_resource() 504 static int _unlock_resource(const char *resource, int lockid) in _unlock_resource() argument 509 DEBUGLOG("unlock_resource: %s lockid: %x\n", resource, lockid); in _unlock_resource() 510 lksb.sb_lkid = lockid; in _unlock_resource() 513 lockid, in _unlock_resource()
|
H A D | clvmd-comms.h | 54 int flags, int *lockid); 55 int (*sync_unlock) (const char *resource, int lockid);
|
H A D | clvmd.h | 125 int sync_lock(const char *resource, int mode, int flags, int *lockid); 126 int sync_unlock(const char *resource, int lockid);
|
H A D | clvmd-command.c | 263 int lockid; in do_pre_command() local 269 status = sync_lock("CLVMD_TEST", LKM_EXMODE, 0, &lockid); in do_pre_command() 270 client->bits.localsock.private = (void *)(long)lockid; in do_pre_command()
|
H A D | clvmd.c | 2045 int sync_lock(const char *resource, int mode, int flags, int *lockid) in sync_lock() argument 2047 return clops->sync_lock(resource, mode, flags, lockid); in sync_lock() 2050 int sync_unlock(const char *resource, int lockid) in sync_unlock() argument 2052 return clops->sync_unlock(resource, lockid); in sync_unlock()
|
/netbsd/external/mpl/bind/dist/lib/isc/unix/ |
H A D | socket.c | 876 int lockid = FDLOCK_ID(fd); in wakeup_socket() local 887 LOCK(&thread->fdlock[lockid]); in wakeup_socket() 897 LOCK(&thread->fdlock[lockid]); in wakeup_socket() 1799 int lockid = FDLOCK_ID(fd); in socketclose() local 1804 LOCK(&thread->fdlock[lockid]); in socketclose() 1848 lockid = FDLOCK_ID(i); in socketclose() 2485 int lockid; in socket_create() local 2538 lockid = FDLOCK_ID(sock->fd); in socket_create() 2989 int lockid = FDLOCK_ID(fd); in internal_accept() local 3231 int lockid = FDLOCK_ID(fd); in process_fd() local [all …]
|
/netbsd/external/bsd/ntp/dist/lib/isc/unix/ |
H A D | socket.c | 841 int lockid = FDLOCK_ID(fd); in watch_fd() local 913 int lockid = FDLOCK_ID(fd); in unwatch_fd() local 964 int lockid = FDLOCK_ID(fd); in wakeup_socket() local 1944 int lockid = FDLOCK_ID(fd); in closesocket() local 1985 lockid = FDLOCK_ID(i); in closesocket() 2563 int lockid; in socket_create() local 2607 lockid = FDLOCK_ID(sock->fd); in socket_create() 2720 int lockid; in isc__socket_fdwatchcreate() local 2745 lockid = FDLOCK_ID(sock->fd); in isc__socket_fdwatchcreate() 3269 int lockid = FDLOCK_ID(fd); in internal_accept() local [all …]
|
/netbsd/sys/uvm/pmap/ |
H A D | pmap.c | 2280 size_t lockid = locknum & pli->pli_lock_mask; in pmap_pvlist_lock_addr() local 2281 kmutex_t * const new_lock = pli->pli_locks[lockid]; in pmap_pvlist_lock_addr() 2289 atomic_inc_uint(&pli->pli_lock_refs[lockid]); in pmap_pvlist_lock_addr()
|