Searched refs:lockid (Results 1 - 11 of 11) sorted by relevance

/netbsd-current/external/gpl2/lvm2/dist/daemons/clvmd/
H A Dclvmd-comms.h54 int flags, int *lockid);
55 int (*sync_unlock) (const char *resource, int lockid);
H A Dclvmd-gulm.c726 static int _lock_resource(char *resource, int mode, int flags, int *lockid) argument
768 static int _unlock_resource(char *resource, int lockid) argument
812 To aid unlocking, we store the lock mode in the lockid (as GULM
815 static int _sync_lock(const char *resource, int mode, int flags, int *lockid) argument
827 status = _lock_resource(lock1, lg_lock_state_Exclusive, flags, lockid);
832 status = _lock_resource(lock2, lg_lock_state_Exclusive, LCK_NONBLOCK, lockid);
835 _unlock_resource(lock1, *lockid);
843 status = _lock_resource(lock1, lg_lock_state_Shared, flags, lockid);
846 status = _unlock_resource(lock2, *lockid);
850 status = _lock_resource(lock2, lg_lock_state_Exclusive, flags, lockid);
866 _sync_unlock(const char *resource, int lockid) argument
[all...]
H A Dclvmd-cman.c418 static int _sync_lock(const char *resource, int mode, int flags, int *lockid) argument
423 if (!lockid) {
429 /* Conversions need the lockid in the LKSB */
431 lwait.lksb.sb_lkid = *lockid;
451 *lockid = lwait.lksb.sb_lkid;
454 DEBUGLOG("sync_lock: returning lkid %x\n", *lockid);
461 static int _sync_unlock(const char *resource /* UNUSED */, int lockid) argument
466 DEBUGLOG("sync_unlock: '%s' lkid:%x\n", resource, lockid);
472 status = dlm_ls_unlock(lockspace, lockid, 0, &lwait.lksb, &lwait);
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-openais.c490 static int _lock_resource(char *resource, int mode, int flags, int *lockid) argument
548 static int _unlock_resource(char *resource, int lockid) argument
558 DEBUGLOG("unlock_resource: lockid: %llx\n", linfo->lock_id);
574 static int _sync_lock(const char *resource, int mode, int flags, int *lockid) argument
586 status = _lock_resource(lock1, SA_LCK_EX_LOCK_MODE, flags, lockid);
592 lockid);
595 _unlock_resource(lock1, *lockid);
603 status = _lock_resource(lock1, SA_LCK_PR_LOCK_MODE, flags, lockid);
606 _unlock_resource(lock2, *lockid);
610 status = _lock_resource(lock2, SA_LCK_EX_LOCK_MODE, flags, lockid);
626 _sync_unlock(const char *resource, int lockid) argument
[all...]
H A Dclvmd-corosync.c465 static int _lock_resource(const char *resource, int mode, int flags, int *lockid) argument
473 lksb.sb_lkid = *lockid;
498 *lockid = lksb.sb_lkid;
504 static int _unlock_resource(const char *resource, int lockid) argument
509 DEBUGLOG("unlock_resource: %s lockid: %x\n", resource, lockid);
510 lksb.sb_lkid = lockid;
513 lockid,
H A Dclvmd-command.c263 int lockid; local
269 status = sync_lock("CLVMD_TEST", LKM_EXMODE, 0, &lockid);
270 client->bits.localsock.private = (void *)(long)lockid;
H A Dclvmd.c2045 int sync_lock(const char *resource, int mode, int flags, int *lockid) argument
2047 return clops->sync_lock(resource, mode, flags, lockid);
2050 int sync_unlock(const char *resource, int lockid) argument
2052 return clops->sync_unlock(resource, lockid);
/netbsd-current/external/bsd/ntp/dist/lib/isc/unix/
H A Dsocket.c841 int lockid = FDLOCK_ID(fd);
850 LOCK(&manager->fdlock[lockid]);
859 UNLOCK(&manager->fdlock[lockid]);
913 int lockid = FDLOCK_ID(fd);
924 LOCK(&manager->fdlock[lockid]);
946 UNLOCK(&manager->fdlock[lockid]);
964 int lockid = FDLOCK_ID(fd); local
984 LOCK(&manager->fdlock[lockid]);
986 UNLOCK(&manager->fdlock[lockid]);
1001 UNLOCK(&manager->fdlock[lockid]);
1944 int lockid = FDLOCK_ID(fd); local
2563 int lockid; local
2683 int lockid = FDLOCK_ID(sock->fd); local
2720 int lockid; local
3269 int lockid = FDLOCK_ID(fd); local
3538 int lockid = FDLOCK_ID(fd); local
[all...]
/netbsd-current/external/mpl/dhcp/bind/dist/lib/isc/unix/
H A Dsocket.c876 int lockid = FDLOCK_ID(fd); local
887 LOCK(&thread->fdlock[lockid]);
893 UNLOCK(&thread->fdlock[lockid]);
897 LOCK(&thread->fdlock[lockid]);
909 UNLOCK(&thread->fdlock[lockid]);
913 UNLOCK(&thread->fdlock[lockid]);
932 UNLOCK(&thread->fdlock[lockid]);
1799 int lockid = FDLOCK_ID(fd); local
1804 LOCK(&thread->fdlock[lockid]);
1810 UNLOCK(&thread->fdlock[lockid]);
2485 int lockid; local
2614 int lockid = FDLOCK_ID(sock->fd); local
2989 int lockid = FDLOCK_ID(fd); local
3231 int lockid = FDLOCK_ID(fd); local
5651 int lockid; local
[all...]
/netbsd-current/sys/uvm/pmap/
H A Dpmap.c2292 size_t lockid = locknum & pli->pli_lock_mask; local
2293 kmutex_t * const new_lock = pli->pli_locks[lockid];
2301 atomic_inc_uint(&pli->pli_lock_refs[lockid]);

Completed in 392 milliseconds