Searched refs:lock (Results 1 - 25 of 645) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dsm_locking6.c5 #define spin_trylock_irqsave(lock, flags) \
8 _spin_trylock(lock) ? 1 : ({ raw_local_irq_restore(flags); 0; }); \
11 void _spin_unlock_irqrestore(int lock, int flags);
17 int lock = 1; local
20 if (!spin_trylock_irqsave(lock, flags))
22 _spin_unlock_irqrestore(lock, flags);
25 if (spin_trylock_irqsave(lock, flags))
37 sm_locking6.c:27 func() warn: inconsistent returns 'lock'.
H A Dsm_locking7.c10 int lock; local
16 __ret = spin_trylock(&lock);
33 sm_locking7.c:22 func() warn: inconsistent returns 'lock'.
/illumos-gate/usr/src/uts/common/sys/
H A Dflock_impl.h56 struct lock_descriptor *from_vertex; /* edge emanating from lock */
57 struct lock_descriptor *to_vertex; /* edge pointing to lock */
63 struct lock_descriptor *l_next; /* next active/sleep lock */
64 struct lock_descriptor *l_prev; /* previous active/sleep lock */
73 int l_type; /* type of lock */
79 kcondvar_t l_cv; /* wait condition for lock */
106 * The possible states a lock can be in. These states are stored in the
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 used
166 #define IO_LOCK 0x0004 /* is an IO lock */
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/support/
H A Dinit-addrinfo.c64 return k5_mutex_finish_init(&krb5int_fac.lock);
69 k5_mutex_destroy(&krb5int_fac.lock);
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_lock.c27 * 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
68 smb_lock_t *lock; local
78 for (lock = smb_llist_head(llist);
79 lock != NULL;
80 lock = smb_llist_next(llist, lock)) {
81 if (lock
106 smb_lock_t *lock = NULL; local
180 smb_lock_t *lock; local
360 smb_lock_t *lock; local
421 smb_lock_t *lock; local
491 smb_lock_t *lock; local
613 smb_lock_posix_unlock(smb_node_t *node, smb_lock_t *lock, cred_t *cr) argument
674 smb_lock_range_overlap(struct smb_lock *lock, uint64_t start, uint64_t length) argument
721 smb_lock_t *lock; local
781 smb_lock_t *lock = sr->cancel_arg2; local
804 smb_lock_wait(smb_request_t *sr, smb_lock_t *lock, smb_lock_t *conflict) argument
958 smb_lock_t *lock; local
988 smb_lock_t *lock; local
1017 smb_lock_free(smb_lock_t *lock) argument
1033 smb_lock_destroy(smb_lock_t *lock) argument
1175 smb_lock_dump1(smb_lock_t *lock) argument
1189 smb_lock_t *lock; local
[all...]
/illumos-gate/usr/src/lib/libnsl/common/
H A Ddaemon_utils.c46 * Use an advisory lock to ensure that only one daemon process is
47 * active in the system at any point in time. If the lock is held
49 * the lock to the caller immediately. The lock is cleared if the
50 * holding daemon process exits for any reason even if the lock
55 * check if another process is holding lock on the lock file.
65 struct flock lock; local
73 lock.l_type = F_WRLCK;
74 lock
144 struct flock lock; local
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Dflock.c74 cmn_err(CE_PANIC, "Illegal lock transition \
111 * lock: mutex]
136 static kmutex_t nlm_reg_lock; /* lock to protect arrary */
140 * Although we need a global lock dependency graph (and associated data
141 * structures), we also need a per-zone notion of whether the lock manager is
142 * running, and so whether to allow lock manager requests or not.
145 * (flk_lockmgr_status), protected by flock_lock, and set when the lock
151 * The per-graph copies are used to synchronize lock requests with shutdown
164 static void flk_free_lock(lock_descriptor_t *lock);
238 * KLM module not loaded; lock manage
461 lock_descriptor_t *fplock, *lock, *nlock; local
1010 flk_free_lock(lock_descriptor_t *lock) argument
1028 flk_set_state(lock_descriptor_t *lock, int new_state) argument
1083 lock_descriptor_t *lock; local
1305 lock_descriptor_t *lock, *lock1; local
1615 flk_relation(lock_descriptor_t *lock, lock_descriptor_t *request) argument
1847 lock_descriptor_t *first_lock, *lock; local
1884 flk_delete_active_lock(lock_descriptor_t *lock, int free_lock) argument
1923 lock_descriptor_t *lock; local
1954 lock_descriptor_t *vertex, *lock; local
2092 lock_descriptor_t *lock; local
2113 flk_wakeup(lock_descriptor_t *lock, int adj_list_remove) argument
2170 lock_descriptor_t *vertex, *lock; local
2264 lock_descriptor_t *ver, *lock; local
2297 flk_update_barriers(lock_descriptor_t *lock) argument
2341 flk_find_barriers(lock_descriptor_t *lock) argument
2390 lock_descriptor_t *lock, *blocker; local
2505 lock_descriptor_t *lock; local
2579 lock_descriptor_t *lock; local
2627 lock_descriptor_t *lock; local
2684 lock_descriptor_t *lock; local
2737 lock_descriptor_t *lock, *nlock; local
2790 lock_descriptor_t *lock, *nlock; local
2844 lock_descriptor_t *lock, *nlock; local
2903 lock_descriptor_t *lock, *nlock; local
2936 lock_descriptor_t *lock, *nlock; local
3081 flk_check_deadlock(lock_descriptor_t *lock) argument
3257 flk_get_proc_vertex(lock_descriptor_t *lock) argument
3665 lock_descriptor_t *lock; local
3849 lock_descriptor_t *lock; /* lock */ local
3910 lock_descriptor_t *lock; local
3958 lock_descriptor_t *lock; local
4008 lock_descriptor_t *lock; local
4043 lock_descriptor_t *lock; local
4294 lock_descriptor_t *lock; local
4356 lock_descriptor_t *lock, *lock1; local
4540 lock_descriptor_t *lock; local
[all...]
/illumos-gate/usr/src/lib/sun_fc/common/
H A DLockable.h38 static void lock(pthread_mutex_t* mutex);
43 void lock();
/illumos-gate/usr/src/uts/i86pc/os/
H A Dhold_page.c34 plat_hold_page(pfn_t pfn, int lock, page_t **pp_ret) argument
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)
/illumos-gate/usr/src/lib/libcrypt/common/
H A Dcryptio.c60 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...]
/illumos-gate/usr/src/lib/libslp/clib/
H A Dslp_queue.c61 mutex_t *lock; member in struct:queue
75 mutex_t *lock; local
82 if ((lock = calloc(1, sizeof (*lock))) == NULL) {
104 q->lock = lock;
125 (void) mutex_lock(q->lock);
135 (void) mutex_unlock(q->lock);
154 (void) mutex_lock(q->lock);
160 (void) mutex_unlock(q->lock);
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/
H A Drc_mem.c112 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...]
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgai_strerror.c57 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)
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_rwlock.c32 * 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...]
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_cno_modify_agent.c79 dapl_os_lock(&cno_ptr->header.lock);
81 dapl_os_unlock(&cno_ptr->header.lock);
H A Ddapl_evd_clear_unwaitable.c75 dapl_os_lock(&evd_ptr->header.lock);
77 dapl_os_unlock(&evd_ptr->header.lock);
H A Ddapl_evd_set_unwaitable.c75 dapl_os_lock(&evd_ptr->header.lock);
77 dapl_os_unlock(&evd_ptr->header.lock);
H A Ddapl_evd_modify_cno.c103 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);
/illumos-gate/usr/src/uts/intel/sys/
H A Dsynch32.h42 #define mutex_lockword lock.lock32.lockword
44 #define mutex_lockword64 lock.owner64
46 #define mutex_lockw lock.lock64.pad[7]
47 #define mutex_waiters lock.lock64.pad[6]
48 #define mutex_spinners lock.lock64.pad[5]
50 /* process-shared lock owner pid */
51 #define mutex_ownerpid lock.lock32.ownerpid
/illumos-gate/usr/src/uts/sparc/sys/
H A Dsynch32.h42 #define mutex_lockword lock.lock32.lockword
44 #define mutex_lockword64 lock.owner64
46 #define mutex_lockw lock.lock64.pad[4]
47 #define mutex_waiters lock.lock64.pad[7]
48 #define mutex_spinners lock.lock64.pad[5]
50 /* process-shared lock owner pid */
51 #define mutex_ownerpid lock.lock32.ownerpid
/illumos-gate/usr/src/uts/common/vm/
H A Dseg_vn.h69 * The read/write segment lock protects all of segvn_data including the
72 * The "write" version of the segment lock, however, is required in order to
81 * is written by acquiring either the readers lock on the segment and
82 * freemem lock, or any lock combination which guarantees exclusive use
83 * of this segment (e.g., adress space writers lock,
84 * address space readers lock + segment writers lock).
87 krwlock_t lock; /* protect segvn_data and vpage array */ member in struct:segvn_data
88 kmutex_t segfree_syncmtx; /* barrier lock fo
[all...]
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/
H A Dfksmbfs_rwlock.c31 * A homegrown reader/writer lock implementation. It addresses
62 mutex_enter(&l->lock);
69 /* lock is held for writing by current thread */
82 (void) cv_wait_sig(&l->cv, &l->lock);
84 cv_wait(&l->cv, &l->lock);
107 if (!cv_wait_sig(&l->cv, &l->lock)) {
110 mutex_exit(&l->lock);
114 cv_wait(&l->cv, &l->lock);
121 mutex_exit(&l->lock);
127 * If the lock i
[all...]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/
H A Dadb_openclose.c64 /* only create the lock file if we successfully created the db */
117 * Do not release the lock on fromdb because it is being renamed
163 * distinct lockinfo structures, things get confused: lock(A),
164 * lock(B), release(B) will result in the kernel unlocking the
165 * lock file but handle A will still think the file is locked.
166 * Therefore, all handles using the same lock file must share a
172 * lock files. This code used to use a single static lockinfo
174 * the first database's lock file. This was Bad.
234 db->lock = &lockp->lockinfo;
235 db->lock
[all...]
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_dli.c94 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...]
/illumos-gate/usr/src/lib/libc/amd64/threads/
H A Damd64.il51 lock
61 lock
66 lock
71 lock
76 lock

Completed in 220 milliseconds

1234567891011>>