| /onnv/onnv-gate/usr/src/uts/common/io/drm/ |
| drm_lock.c | 7 * lock.c -- IOCTLs for locking -*- linux-c -*- 46 volatile unsigned int *lock = &lock_data->hw_lock->lock; local 49 old = *lock; 54 } while (!atomic_cmpset_int(lock, old, new)); 59 DRM_ERROR("%d holds heavyweight lock\n", 66 /* Have lock */ 73 * This takes a lock forcibly and hands it to context. Should ONLY be used 74 * inside *_unlock to give lock to kernel before calling *_dma_schedule. 81 volatile unsigned int *lock = &lock_data->hw_lock->lock local 122 drm_lock_t lock; local 169 drm_lock_t lock; local [all...] |
| /onnv/onnv-gate/usr/src/uts/common/sys/ |
| flock_impl.h | 57 struct lock_descriptor *from_vertex; /* edge emanating from lock */ 58 struct lock_descriptor *to_vertex; /* edge pointing to lock */ 64 struct lock_descriptor *l_next; /* next active/sleep lock */ 65 struct lock_descriptor *l_prev; /* previous active/sleep lock */ 74 int l_type; /* type of lock */ 80 kcondvar_t l_cv; /* wait condition for lock */ 106 * The possible states a lock can be in. These states are stored in the 131 * Lock transitions are done in the following functions: 155 * The LLM design has been modified so that lock states are now stored 160 * to the implementation of the lock manager and should not be use [all...] |
| /onnv/onnv-gate/usr/src/lib/gss_mechs/mech_krb5/support/ |
| init-addrinfo.c | 64 return k5_mutex_finish_init(&krb5int_fac.lock); 69 k5_mutex_destroy(&krb5int_fac.lock);
|
| /onnv/onnv-gate/usr/src/pkgdefs/SUNWcsu/ |
| postinstall | 29 rm -f $BASEDIR/dev/.devfsadm_deamon.lock >/dev/null 2>&1
|
| /onnv/onnv-gate/usr/src/uts/common/fs/smbsrv/ |
| smb_lock.c | 27 * This module provides range lock functionality for CIFS/SMB clients. 28 * Lock range service functions process SMB lock and and unlock 29 * requests for a file by applying lock rules and marks file range 30 * as locked if the lock is successful otherwise return proper 75 * locates lock range performed for corresponding to unlock request. 77 * NT_STATUS_SUCCESS - Lock range performed successfully. 87 smb_lock_t *lock = NULL; local 92 status = smb_lock_range_ulckrules(sr, node, start, length, &lock); 95 * If lock range is not matching in the lis 135 smb_lock_t *lock; local 258 smb_lock_t *lock; local 291 smb_lock_t *lock; local 508 smb_lock_t *lock; local 677 smb_lock_t *lock; local 708 smb_lock_t *lock; local [all...] |
| /onnv/onnv-gate/usr/src/lib/sun_fc/common/ |
| Lockable.h | 38 static void lock(pthread_mutex_t* mutex); 43 void lock();
|
| /onnv/onnv-gate/usr/src/uts/i86pc/os/ |
| hold_page.c | 34 plat_hold_page(pfn_t pfn, int lock, page_t **pp_ret) 47 if (lock == PLAT_HOLD_LOCK) { 53 if (lock == PLAT_HOLD_LOCK) { 60 /* We failed - release the lock if we grabbed it earlier */ 61 if (lock == PLAT_HOLD_LOCK) { 68 if (lock == PLAT_HOLD_LOCK)
|
| /onnv/onnv-gate/usr/src/uts/common/os/ |
| flock.c | 72 cmn_err(CE_PANIC, "Illegal lock transition \ 109 * lock: mutex] 134 static kmutex_t nlm_reg_lock; /* lock to protect arrary */ 138 * Although we need a global lock dependency graph (and associated data 139 * structures), we also need a per-zone notion of whether the lock manager is 140 * running, and so whether to allow lock manager requests or not. 143 * (flk_lockmgr_status), protected by flock_lock, and set when the lock 149 * The per-graph copies are used to synchronize lock requests with shutdown 162 static void flk_free_lock(lock_descriptor_t *lock); 236 * KLM module not loaded; lock manager definitely not running 780 lock_descriptor_t *lock; local 1003 lock_descriptor_t *lock, *lock1; local 1544 lock_descriptor_t *first_lock, *lock; local 1620 lock_descriptor_t *lock; local 1651 lock_descriptor_t *vertex, *lock; local 1789 lock_descriptor_t *lock; local 1868 lock_descriptor_t *vertex, *lock; local 1962 lock_descriptor_t *ver, *lock; local 2088 lock_descriptor_t *lock, *blocker; local 2184 lock_descriptor_t *lock; local 2259 lock_descriptor_t *lock; local 2313 lock_descriptor_t *lock; local 2366 lock_descriptor_t *lock, *nlock; local 2419 lock_descriptor_t *lock, *nlock; local 2473 lock_descriptor_t *lock, *nlock; local 2532 lock_descriptor_t *lock, *nlock; local 2563 lock_descriptor_t *lock, *nlock; local 3287 lock_descriptor_t *lock; local 3471 lock_descriptor_t *lock; \/* lock *\/ local 3532 lock_descriptor_t *lock; local 3580 lock_descriptor_t *lock; local 3630 lock_descriptor_t *lock; local 3665 lock_descriptor_t *lock; local 3920 lock_descriptor_t *lock; local 3982 lock_descriptor_t *lock, *lock1; local 4166 lock_descriptor_t *lock; local [all...] |
| /onnv/onnv-gate/usr/src/lib/libcrypt/common/ |
| cryptio.c | 60 static mutex_t lock = DEFAULTMUTEX; variable 70 (void) mutex_lock(&lock); 72 (void) mutex_unlock(&lock); 78 (void) mutex_unlock(&lock); 82 (void) mutex_unlock(&lock); 85 (void) mutex_unlock(&lock); 127 (void) mutex_lock(&lock); 135 (void) mutex_unlock(&lock); 141 (void) mutex_unlock(&lock); 147 (void) mutex_unlock(&lock); [all...] |
| /onnv/onnv-gate/usr/src/lib/libslp/clib/ |
| slp_queue.c | 63 mutex_t *lock; member in struct:queue 77 mutex_t *lock; local 84 if ((lock = calloc(1, sizeof (*lock))) == NULL) { 106 q->lock = lock; 127 (void) mutex_lock(q->lock); 137 (void) mutex_unlock(q->lock); 156 (void) mutex_lock(q->lock); 162 (void) mutex_unlock(q->lock); [all...] |
| /onnv/onnv-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/ |
| rc_mem.c | 112 err = k5_mutex_lock(&id->lock); 116 if (err = k5_mutex_lock(&grcache.lock)) { 117 k5_mutex_unlock(&id->lock); 122 k5_mutex_unlock(&grcache.lock); 124 k5_mutex_unlock(&id->lock); 144 retval = k5_mutex_lock(&id->lock); 147 retval = k5_mutex_lock(&grcache.lock); 149 k5_mutex_unlock(&id->lock); 155 k5_mutex_unlock(&grcache.lock); 156 k5_mutex_unlock(&id->lock); [all...] |
| /onnv/onnv-gate/usr/src/uts/common/fs/smbclnt/smbfs/ |
| smbfs_rwlock.c | 32 * A homegrown reader/writer lock implementation. It addresses 62 mutex_enter(&l->lock); 69 /* lock is held for writing by current thread */ 85 if (!cv_wait_sig(&l->cv, &l->lock)) { 88 mutex_exit(&l->lock); 94 cv_wait(&l->cv, &l->lock); 120 if (!cv_wait_sig(&l->cv, &l->lock)) { 125 mutex_exit(&l->lock); 131 cv_wait(&l->cv, &l->lock); 138 mutex_exit(&l->lock); [all...] |
| /onnv/onnv-gate/usr/src/lib/libresolv2/common/irs/ |
| gai_strerror.c | 57 static pthread_mutex_t lock = LIBBIND_MUTEX_INITIALIZER; 68 if (pthread_mutex_lock(&lock) != 0) 72 (void)pthread_mutex_unlock(&lock); 77 if (pthread_mutex_unlock(&lock) != 0)
|
| /onnv/onnv-gate/usr/src/lib/udapl/udapl_tavor/common/ |
| dapl_cno_modify_agent.c | 79 dapl_os_lock(&cno_ptr->header.lock); 81 dapl_os_unlock(&cno_ptr->header.lock);
|
| dapl_evd_clear_unwaitable.c | 75 dapl_os_lock(&evd_ptr->header.lock); 77 dapl_os_unlock(&evd_ptr->header.lock);
|
| dapl_evd_set_unwaitable.c | 75 dapl_os_lock(&evd_ptr->header.lock); 77 dapl_os_unlock(&evd_ptr->header.lock);
|
| dapl_evd_modify_cno.c | 103 dapl_os_lock(&evd_ptr->header.lock); 106 dapl_os_unlock(&evd_ptr->header.lock); 113 dapl_os_lock(&(old_cno_ptr->header.lock)); 117 dapl_os_unlock(&(old_cno_ptr->header.lock)); 122 dapl_os_lock(&(cno_ptr->header.lock)); 127 dapl_os_unlock(&cno_ptr->header.lock);
|
| /onnv/onnv-gate/usr/src/uts/intel/sys/ |
| synch32.h | 44 #define mutex_lockword lock.lock32.lockword 46 #define mutex_lockword64 lock.owner64 48 #define mutex_lockw lock.lock64.pad[7] 49 #define mutex_waiters lock.lock64.pad[6] 50 #define mutex_spinners lock.lock64.pad[5] 52 /* process-shared lock owner pid */ 53 #define mutex_ownerpid lock.lock32.ownerpid
|
| /onnv/onnv-gate/usr/src/uts/sparc/sys/ |
| synch32.h | 44 #define mutex_lockword lock.lock32.lockword 46 #define mutex_lockword64 lock.owner64 48 #define mutex_lockw lock.lock64.pad[4] 49 #define mutex_waiters lock.lock64.pad[7] 50 #define mutex_spinners lock.lock64.pad[5] 52 /* process-shared lock owner pid */ 53 #define mutex_ownerpid lock.lock32.ownerpid
|
| /onnv/onnv-gate/usr/src/lib/libnsl/common/ |
| daemon_utils.c | 74 * Use an advisory lock to ensure that only one daemon process is 75 * active in the system at any point in time. If the lock is held 77 * the lock to the caller immediately. The lock is cleared if the 78 * holding daemon process exits for any reason even if the lock 83 * check if another process is holding lock on the lock file. 93 struct flock lock; local 101 lock.l_type = F_WRLCK; 102 lock.l_whence = SEEK_SET 172 struct flock lock; local [all...] |
| /onnv/onnv-gate/usr/src/uts/common/vm/ |
| seg_vn.h | 68 * The read/write segment lock protects all of segvn_data including the 71 * The "write" version of the segment lock, however, is required in order to 80 * is written by acquiring either the readers lock on the segment and 81 * freemem lock, or any lock combination which guarantees exclusive use 82 * of this segment (e.g., adress space writers lock, 83 * address space readers lock + segment writers lock). 86 krwlock_t lock; /* protect segvn_data and vpage array */ member in struct:segvn_data 87 kmutex_t segfree_syncmtx; /* barrier lock for segvn_free() * [all...] |
| /onnv/onnv-gate/usr/src/lib/krb5/plugins/kdb/db2/ |
| adb_openclose.c | 71 /* only create the lock file if we successfully created the db */ 124 * Do not release the lock on fromdb because it is being renamed 170 * distinct lockinfo structures, things get confused: lock(A), 171 * lock(B), release(B) will result in the kernel unlocking the 172 * lock file but handle A will still think the file is locked. 173 * Therefore, all handles using the same lock file must share a 179 * lock files. This code used to use a single static lockinfo 181 * the first database's lock file. This was Bad. 241 db->lock = &lockp->lockinfo; 242 db->lock->refcnt++ [all...] |
| /onnv/onnv-gate/usr/src/cmd/syslogd/ |
| queue.c | 36 dataq_check(dataq_t *ptr) /* call while holding lock! */ 51 (void) pthread_mutex_init(&ptr->lock, NULL); 52 assert((pthread_mutex_lock(&ptr->lock) == 0) && 54 (pthread_mutex_unlock(&ptr->lock) == 0)); 67 (void) pthread_mutex_lock(&dataq->lock); 78 (void) pthread_mutex_unlock(&dataq->lock); 88 (void) pthread_mutex_lock(&dataq->lock); 93 (void) pthread_mutex_unlock(&dataq->lock); 101 (void) pthread_cond_wait(&wait.cv, &dataq->lock); 114 (void) pthread_mutex_unlock(&dataq->lock); [all...] |
| /onnv/onnv-gate/usr/src/lib/libc/amd64/threads/ |
| amd64.il | 51 lock 61 lock 66 lock 71 lock 76 lock
|
| /onnv/onnv-gate/usr/src/lib/libdevinfo/ |
| devinfo_dli.c | 94 flock_t lock; local 118 bzero(&lock, sizeof (lock)); 119 lock.l_type = l_type; 120 if (fcntl(fd, F_SETLKW, &lock) < 0) { 150 flock_t lock; local 154 bzero(&lock, sizeof (lock)); 155 lock.l_type = F_UNLCK; 156 (void) fcntl(fd, F_SETLK, &lock); [all...] |