Searched refs:lock (Results 126 - 150 of 219) sorted by relevance

123456789

/osnet-11/usr/src/lib/sun_sas/common/
H A DSun_sasCloseAdapter.c50 lock(&open_handles_lock);
H A DSun_sasGetSASPhyAttributes.c46 lock(&all_hbas_lock);
H A DSun_sasGetPortAttributesByWWN.c52 lock(&all_hbas_lock);
54 lock(&open_handles_lock);
H A DSun_sasScsiReportLUNs.c105 lock(&all_hbas_lock);
107 lock(&open_handles_lock);
H A DSun_sasFreeLibrary.c37 lock(&all_hbas_lock);
/osnet-11/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_cno_util.c83 dapl_os_lock_init(&cno_ptr->header.lock);
H A Ddapl_evd_util.c223 dapl_os_lock_init(&evd_ptr->header.lock);
308 dapl_os_lock(&cno_ptr->header.lock);
313 dapl_os_unlock(&cno_ptr->header.lock);
373 dapl_os_lock(&evd_ptr->cno_ptr->header.lock);
377 dapl_os_unlock(&evd_ptr->cno_ptr->header.lock);
468 * EVD lock and the second releases it.
481 * that the lock is held.
498 dapl_os_lock(&evd_ptr->header.lock);
503 /* Release the lock if it was taken and the call failed. */
505 dapl_os_unlock(&evd_ptr->header.lock);
[all...]
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/keytab/
H A Dkt_memory.c68 k5_mutex_t lock; /* Thread-safety - all but link */ member in struct:_krb5_mkt_data
93 #define KTLOCK(id) k5_mutex_lock(&(((krb5_mkt_data *)(id)->data)->lock))
94 #define KTUNLOCK(id) k5_mutex_unlock(&(((krb5_mkt_data *)(id)->data)->lock))
95 #define KTCHECKLOCK(id) k5_mutex_assert_locked(&(((krb5_mkt_data *)(id)->data)->lock))
168 /* destroy the lock */
169 k5_mutex_destroy(&(((krb5_mkt_data *)node->keytab->data)->lock));
218 err = k5_mutex_init(&data->lock);
229 /* data->lock was initialized last, so no need to destroy. */
264 * We do not drop the global lock, therefore the name will indeed
334 * There is no need to lock th
[all...]
/osnet-11/usr/src/cmd/sendmail/db/btree/
H A Dbt_delete.c303 DB_LOCK lock; local
320 * Once we have the top page that we want to delete locked, lock the
340 (void)__BT_TLPUT(dbc, cp->csp[-1].lock);
342 (void)__BT_TLPUT(dbc, cp->csp[0].lock);
370 * Get the next page, write lock it and push it onto the stack.
376 if ((ret = __bam_lget(dbc, 0, pgno, DB_LOCK_WRITE, &lock)) != 0)
380 BT_STK_PUSH(cp, h, 0, lock, ret);
429 * read-locked and is waiting on a lock for the page we're deleting.
454 (void)__BT_TLPUT(dbc, epg->lock);
473 (void)__BT_TLPUT(dbc, epg->lock);
[all...]
/osnet-11/usr/src/lib/libsqlite/src/
H A Dos.c123 ** sets or clears a lock, that operation overrides any prior locks set
133 ** an exclusive lock on fd1, then try to get an exclusive lock
134 ** on fd2, it works. I would have expected the second lock to
135 ** fail since there was already a lock on the file due to fd1.
152 ** locks to see if another thread has previously set a lock on that same
162 ** field that tells us its internal lock status. cnt==0 means the
163 ** file is unlocked. cnt==-1 means the file has an exclusive lock.
166 ** Any attempt to lock or unlock a file first checks the locking
168 ** POSIX lock i
1331 struct flock lock; local
1442 struct flock lock; local
1557 struct flock lock; local
1727 static long lock = 0; local
[all...]
/osnet-11/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_rep.c136 * This function sets an advisory lock on the file pointed to by the argument
137 * fd, which is a file descriptor. The lock is set using fcntl() which uses
143 struct flock lock; local
145 lock.l_type = type;
146 lock.l_start = offset;
147 lock.l_whence = whence;
148 lock.l_len = len;
150 return (fcntl(fd, cmd, &lock));
346 * We cannot close the repository since we hold a lock
/osnet-11/usr/src/lib/libc/port/gen/
H A Dnss_common.c83 * changed. Especially if it happens > once. The switch does not lock
110 * search/setent/getent the lock can be left set in the child,
115 * storelockaddr() stores the details of the lock in the array and
117 * removelockaddr() removes the address of the lock from the array and
138 * you don't hold the lock, you'd better have incremented the refcount
139 * while you held the lock; otherwise, it may vanish or change
184 /* ==== null definitions if !MTSAFE? Ditto lock field in nss_db_root_t */
186 #define NSS_ROOTLOCK(r, sp) (cancel_safe_mutex_lock(&(r)->lock), \
190 #define NSS_UNLOCK(r) (cancel_safe_mutex_unlock(&(r)->lock))
193 (cancel_safe_mutex_unlock(&(*(rp))->lock), \
283 mutex_t *lock; member in struct:nss_cfgparam
[all...]
H A Dplock.c30 * plock - lock "segments" in physical memory.
40 #include <sys/lock.h>
50 static int lock_state = 0; /* lock state */
66 * Validate state of lock's. If parent has forked, then
67 * the lock state needs to be reset (children do not inherit
107 * If a text or process lock is already set, then fail.
116 * Try to apply the lock(s). If a failure occurs,
134 * If a data or process lock is already set, then fail.
143 * Try to lock the data and stack segments. On failure
153 /* try to set a lock fo
[all...]
/osnet-11/usr/src/lib/fm/libldom/sparc/
H A Dldom_xmpp_client.c327 (void) pthread_mutex_lock(&clt_list.lock);
333 (void) pthread_mutex_unlock(&clt_list.lock);
460 (void) pthread_mutex_lock(&clt_list.lock);
463 (void) pthread_mutex_unlock(&clt_list.lock);
485 (void) pthread_mutex_unlock(&clt_list.lock);
499 (void) pthread_mutex_lock(&clt_list.lock);
502 (void) pthread_mutex_unlock(&clt_list.lock);
525 (void) pthread_mutex_unlock(&clt_list.lock);
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dacquire_cred.c592 code = k5_mutex_init(&cred->lock);
598 /* Note that we don't need to lock this GSSAPI credential record
605 k5_mutex_destroy(&cred->lock);
623 k5_mutex_destroy(&cred->lock);
649 k5_mutex_destroy(&cred->lock);
669 k5_mutex_destroy(&cred->lock);
696 k5_mutex_destroy(&cred->lock);
735 k5_mutex_destroy(&cred->lock);
758 k5_mutex_destroy(&cred->lock);
/osnet-11/usr/src/grub/grub2/grub-core/kern/
H A Ddisk.c41 int lock; member in struct:grub_disk_cache
84 cache->lock = 1;
87 cache->lock = 0;
100 if (cache->data && ! cache->lock)
121 cache->lock = 1;
147 cache->lock = 0;
160 cache->lock = 1;
163 cache->lock = 0;
/osnet-11/usr/src/cmd/sendmail/db/include/
H A Dmp.h38 * region lock to provide mutual exclusion while reading/modifying all of
40 * header lock to wait on buffer I/O. The order of locking is as follows:
43 * Acquire the region lock.
47 * Release the region lock.
51 * Request the buffer lock.
53 * Acquire the buffer lock.
54 * Release the buffer lock.
55 * Acquire the region lock.
60 * Acquire the region lock.
64 * Acquire the buffer lock (guarantee
[all...]
/osnet-11/usr/src/lib/krb5/plugins/kdb/db2/
H A Dpolicy_db.h68 osa_adb_lock_t lock; member in struct:_osa_adb_db_ent_t
/osnet-11/usr/src/cmd/sendmail/db/db/
H A Ddb_am.c110 memcpy(dbc->lock.fileid, dbp->fileid, DB_FILE_ID_LEN);
113 dbc->lock_dbt.data = dbc->lock.fileid;
115 dbc->lock_dbt.size = sizeof(dbc->lock);
116 dbc->lock_dbt.data = &dbc->lock;
190 * We cannot release the lock until after we've called the
204 /* Release the lock. */
/osnet-11/usr/src/lib/nsswitch/ad/common/
H A Dad_common.h95 pthread_rwlock_t lock; member in struct:nssad_cfg
/osnet-11/usr/src/lib/libast/common/sfio/
H A Dsfsync.c89 int local, rv, mode, lock; local
105 lock = origf->mode&SF_LOCK;
149 f->mode = SF_READ|SF_SYNCED|lock;
/osnet-11/usr/src/lib/sun_fc/common/
H A DHBAPort.cc254 lock();
275 lock();
291 lock();
/osnet-11/usr/src/lib/libuuid/common/
H A Duuid.c121 * Access the state file, mmap it and initialize the shared lock.
132 * Acquire the lock
135 if ((ret = mutex_lock(&data->lock)) == 0)
141 (void) mutex_consistent(&data->lock);
142 (void) mutex_unlock(&data->lock);
177 (void) mutex_unlock(&data->lock);
287 (void) mutex_init(&data->lock, USYNC_PROCESS|LOCK_ROBUST, 0);
/osnet-11/usr/src/lib/libpkg/common/
H A Dkeystore.c1216 /* could not lock file */
1277 * that held the lock must have
1308 * keystore_file - base keystore file path to lock
1475 * empty one so we can lock on it and
1621 * Release lock on the CA file.
1919 * lock by lock_keystore() in
2311 struct flock lock; local
2313 lock.l_type = type;
2314 lock.l_start = 0;
2315 lock
2338 struct flock lock; local
2367 struct flock lock; local
[all...]
/osnet-11/usr/src/lib/libfru/libfru/
H A Dlibfru.cc91 pthread_rwlock_t lock; member in struct:cont_lock
177 add_cont_lock(cont_lock_t *lock) argument
180 int hash_bucket = lock->handle % CONT_LOCK_HASH_NUM;
184 cont_lock_hash[hash_bucket] = lock;
190 prev->next = lock;
214 cont_lock_t *lock = (cont_lock_t *)malloc(sizeof (cont_lock_t)); local
215 if (lock == NULL) {
218 lock->handle = handle;
219 if (pthread_rwlock_init(&(lock->lock), NUL
[all...]

Completed in 113 milliseconds

123456789