Home
last modified time | relevance | path

Searched refs:lockid (Results 1 – 10 of 10) sorted by relevance

/netbsd-src/external/gpl2/lvm2/dist/daemons/clvmd/
H A Dclvmd-gulm.c726 static int _lock_resource(char *resource, int mode, int flags, int *lockid) in _lock_resource() argument
768 static int _unlock_resource(char *resource, int lockid) in _unlock_resource() argument
815 static int _sync_lock(const char *resource, int mode, int flags, int *lockid) in _sync_lock() argument
827 status = _lock_resource(lock1, lg_lock_state_Exclusive, flags, lockid); in _sync_lock()
832 status = _lock_resource(lock2, lg_lock_state_Exclusive, LCK_NONBLOCK, lockid); in _sync_lock()
835 _unlock_resource(lock1, *lockid); in _sync_lock()
843 status = _lock_resource(lock1, lg_lock_state_Shared, flags, lockid); in _sync_lock()
846 status = _unlock_resource(lock2, *lockid); in _sync_lock()
850 status = _lock_resource(lock2, lg_lock_state_Exclusive, flags, lockid); in _sync_lock()
853 status = _unlock_resource(lock1, *lockid); in _sync_lock()
[all …]
H A Dclvmd-openais.c490 static int _lock_resource(char *resource, int mode, int flags, int *lockid) in _lock_resource() argument
548 static int _unlock_resource(char *resource, int lockid) in _unlock_resource() argument
574 static int _sync_lock(const char *resource, int mode, int flags, int *lockid) in _sync_lock() 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()
610 status = _lock_resource(lock2, SA_LCK_EX_LOCK_MODE, flags, lockid); in _sync_lock()
613 _unlock_resource(lock1, *lockid); in _sync_lock()
[all …]
H A Dclvmd-cman.c418 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 Dclvmd-corosync.c465 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 Dclvmd-comms.h54 int flags, int *lockid);
55 int (*sync_unlock) (const char *resource, int lockid);
H A Dclvmd.h125 int sync_lock(const char *resource, int mode, int flags, int *lockid);
126 int sync_unlock(const char *resource, int lockid);
H A Dclvmd-command.c263 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 Dclvmd.c2045 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-src/external/mpl/dhcp/bind/dist/lib/isc/unix/
H A Dsocket.c876 int lockid = FDLOCK_ID(fd); in wakeup_socket() local
887 LOCK(&thread->fdlock[lockid]); in wakeup_socket()
893 UNLOCK(&thread->fdlock[lockid]); in wakeup_socket()
897 LOCK(&thread->fdlock[lockid]); in wakeup_socket()
909 UNLOCK(&thread->fdlock[lockid]); in wakeup_socket()
913 UNLOCK(&thread->fdlock[lockid]); in wakeup_socket()
932 UNLOCK(&thread->fdlock[lockid]); in wakeup_socket()
1799 int lockid = FDLOCK_ID(fd); in socketclose() local
1804 LOCK(&thread->fdlock[lockid]); in socketclose()
1810 UNLOCK(&thread->fdlock[lockid]); in socketclose()
[all …]
/netbsd-src/sys/uvm/pmap/
H A Dpmap.c2292 size_t lockid = locknum & pli->pli_lock_mask; in pmap_pvlist_lock_addr() local
2293 kmutex_t * const new_lock = pli->pli_locks[lockid]; in pmap_pvlist_lock_addr()
2301 atomic_inc_uint(&pli->pli_lock_refs[lockid]); in pmap_pvlist_lock_addr()