| /illumos-gate/usr/src/lib/libast/common/sfio/ |
| H A D | sfmutex.c | 48 if(!f->mutex) 53 f->mutex = vtmtxopen(NIL(Vtmutex_t*), VT_INIT); 55 if(!f->mutex) 60 return vtmtxlock(f->mutex); 62 return vtmtxtrylock(f->mutex); 64 return vtmtxunlock(f->mutex); 66 return vtmtxclrlock(f->mutex);
|
| H A D | sfextern.c | 33 (void)vtmtxopen(&_Sfpool.mutex, VT_INIT); 34 (void)vtmtxopen(sfstdin->mutex, VT_INIT); 35 (void)vtmtxopen(sfstdout->mutex, VT_INIT); 36 (void)vtmtxopen(sfstderr->mutex, VT_INIT);
|
| H A D | sfnew.c | 54 f->mutex = NIL(Vtmutex_t*); 55 SFCLEAR(f, f->mutex); 90 SFCLEAR(f, f->mutex); 103 /* create a mutex */ 104 if(!f->mutex) 105 f->mutex = vtmtxopen(NIL(Vtmutex_t*), VT_INIT);
|
| /illumos-gate/usr/src/lib/sun_fc/common/ |
| H A D | Lockable.h | 38 static void lock(pthread_mutex_t* mutex); 39 static void unlock(pthread_mutex_t* mutex); 47 pthread_mutex_t mutex; member in class:Lockable
|
| H A D | Lockable.cc | 43 if (pthread_mutex_init(&mutex, NULL)) { 51 if (pthread_mutex_destroy(&mutex)) { 61 unlock(&mutex); 65 * @memo Unlock a given mutex lock 79 lock(&mutex); 83 * @memo Lock the given mutex lock 85 * @param myMutex The mutex lock to take
|
| /illumos-gate/usr/src/uts/common/io/dmfe/ |
| H A D | dmfe_log.c | 33 kmutex_t mutex[1]; member in struct:__anon5296 42 mutex_init(prtdata.mutex, NULL, MUTEX_DRIVER, NULL); 48 mutex_destroy(prtdata.mutex); 59 ASSERT(mutex_owned(prtdata.mutex)); 76 mutex_enter(prtdata.mutex); 93 mutex_exit(prtdata.mutex); 104 mutex_enter(prtdata.mutex); 113 mutex_exit(prtdata.mutex); 124 mutex_enter(prtdata.mutex); 133 mutex_exit(prtdata.mutex); [all...] |
| /illumos-gate/usr/src/uts/sun4/sys/ |
| H A D | tod.h | 42 kmutex_t mutex; member in struct:tod_softc
|
| /illumos-gate/usr/src/lib/libnisdb/ |
| H A D | nisdb_rw.c | 52 if ((ret = mutex_init(&rw->mutex, USYNC_THREAD, 0)) != 0) 116 if ((ret = mutex_lock(&rw->mutex)) != 0) 130 (void) mutex_unlock(&rw->mutex); 143 if ((ret = mutex_lock(&rw->mutex)) != 0) 157 (void) mutex_unlock(&rw->mutex); 182 if ((ret = mutex_lock(&rw->mutex)) != 0) 186 (void) mutex_unlock(&rw->mutex); 195 return (mutex_unlock(&rw->mutex)); 200 * all other readers are blocked waiting for the mutex. 235 * - N readers, but all blocked on the mutex [all...] |
| /illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/ |
| H A D | util_validate.c | 93 ret = k5_mutex_lock(&db->mutex); 109 (void) k5_mutex_unlock(&db->mutex); 119 ret = k5_mutex_lock(&db->mutex); 127 (void) k5_mutex_unlock(&db->mutex); 133 (void) k5_mutex_unlock(&db->mutex); 149 ret = k5_mutex_lock(&db->mutex); 155 (void) k5_mutex_unlock(&db->mutex); 166 (void) k5_mutex_unlock(&db->mutex); 170 (void) k5_mutex_unlock(&db->mutex); 177 ret = k5_mutex_lock(&db->mutex); [all...] |
| /illumos-gate/usr/src/uts/intel/sys/acpi/platform/ |
| H A D | achaiku.h | 50 struct mutex; 59 #define ACPI_MUTEX struct mutex *
|
| /illumos-gate/usr/src/uts/sun4/io/ |
| H A D | tod.c | 207 mutex_init(&softc->mutex, NULL, MUTEX_DRIVER, NULL); 214 mutex_enter(&softc->mutex); 216 mutex_exit(&softc->mutex); 248 mutex_destroy(&softc->mutex); 256 mutex_enter(&softc->mutex); 258 mutex_exit(&softc->mutex); 298 mutex_enter(&softc->mutex); 300 mutex_exit(&softc->mutex); 302 mutex_enter(&softc->mutex); 317 mutex_exit(&softc->mutex); [all...] |
| /illumos-gate/usr/src/lib/libfakekernel/common/sys/ |
| H A D | t_lock.h | 43 #include <sys/mutex.h>
|
| /illumos-gate/usr/src/uts/common/io/warlock/ |
| H A D | ddi_dki_impl.c | 158 static kmutex_t mutex; variable 164 mutex_enter(&mutex); 165 cv_wait(&cv, &mutex); 166 mutex_exit(&mutex); 172 mutex_enter(&mutex); 173 cv_wait(&cv, &mutex); 174 mutex_exit(&mutex);
|
| /illumos-gate/usr/src/uts/common/sys/rsm/ |
| H A D | rsmka_path_int.h | 152 kmutex_t mutex; member in struct:path 176 kmutex_t mutex; member in struct:adapter 210 kmutex_t mutex; member in struct:adapter_listhead 253 mutex_enter(&((adapter)->mutex)); \ 256 mutex_exit(&((adapter)->mutex)); \ 260 mutex_enter(&((adapter)->mutex)); \ 263 mutex_exit(&((adapter)->mutex)); \ 267 ASSERT(MUTEX_HELD(&(adapter)->mutex)); \ 273 mutex_enter(&(path)->mutex); \ 276 mutex_exit(&(path)->mutex); \ [all...] |
| /illumos-gate/usr/src/uts/common/io/ |
| H A D | beep.c | 63 * Note that mutex_init is not called on the mutex in beep_state, 65 * as documented in mutex.c 99 mutex_enter(&beep_state.mutex); 102 mutex_exit(&beep_state.mutex); 134 mutex_exit(&beep_state.mutex); 148 mutex_enter(&beep_state.mutex); 151 mutex_exit(&beep_state.mutex); 173 mutex_exit(&beep_state.mutex); 186 mutex_enter(&beep_state.mutex); 189 mutex_exit(&beep_state.mutex); [all...] |
| /illumos-gate/usr/src/uts/common/io/scsi/impl/ |
| H A D | scsi_reset_notify.c | 38 * The function is entered without adapter driver mutex being held. 43 void (*callback)(caddr_t), caddr_t arg, kmutex_t *mutex, 49 mutex_enter(mutex); 78 mutex_exit(mutex); 101 * The function is entered with adapter driver mutex being held. 104 scsi_hba_reset_notify_callback(kmutex_t *mutex, argument 134 mutex_exit(mutex); 140 mutex_enter(mutex); 42 scsi_hba_reset_notify_setup(struct scsi_address *ap, int flag, void (*callback)(caddr_t), caddr_t arg, kmutex_t *mutex, struct scsi_reset_notify_entry **listp) argument
|
| /illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/ |
| H A D | gss_libinit.c | 57 return k5_mutex_finish_init(&kg_vdb.mutex); 77 k5_mutex_destroy(&kg_vdb.mutex);
|
| /illumos-gate/usr/src/lib/libast/amd64/include/ast/ |
| H A D | sfio_t.h | 45 Void_t* mutex; /* mutex for thread-safety */ \ 65 #define SFNEW(data,size,file,type,disc,mutex) \ 86 (mutex), /* mutex */ \ 114 (f)->mutex = (mtx), /* mutex */ \
|
| /illumos-gate/usr/src/lib/libast/common/include/ |
| H A D | sfio_t.h | 45 Void_t* mutex; /* mutex for thread-safety */ \ 65 #define SFNEW(data,size,file,type,disc,mutex) \ 86 (mutex), /* mutex */ \ 114 (f)->mutex = (mtx), /* mutex */ \
|
| /illumos-gate/usr/src/lib/libast/i386/include/ast/ |
| H A D | sfio_t.h | 45 Void_t* mutex; /* mutex for thread-safety */ \ 65 #define SFNEW(data,size,file,type,disc,mutex) \ 86 (mutex), /* mutex */ \ 114 (f)->mutex = (mtx), /* mutex */ \
|
| /illumos-gate/usr/src/lib/libast/sparc/include/ast/ |
| H A D | sfio_t.h | 45 Void_t* mutex; /* mutex for thread-safety */ \ 65 #define SFNEW(data,size,file,type,disc,mutex) \ 86 (mutex), /* mutex */ \ 114 (f)->mutex = (mtx), /* mutex */ \
|
| /illumos-gate/usr/src/lib/libast/sparcv9/include/ast/ |
| H A D | sfio_t.h | 45 Void_t* mutex; /* mutex for thread-safety */ \ 65 #define SFNEW(data,size,file,type,disc,mutex) \ 86 (mutex), /* mutex */ \ 114 (f)->mutex = (mtx), /* mutex */ \
|
| /illumos-gate/usr/src/uts/common/io/e1000g/ |
| H A D | e1000_osdep.h | 51 #include <sys/mutex.h> 222 #define E1000_MUTEX_INIT(mutex) mutex_init(mutex, NULL, \ 224 #define E1000_MUTEX_DESTROY(mutex) mutex_destroy(mutex) 226 #define E1000_MUTEX_LOCK(mutex) mutex_enter(mutex) 227 #define E1000_MUTEX_TRYLOCK(mutex) mutex_tryenter(mutex) 228 #define E1000_MUTEX_UNLOCK(mutex) mutex_exi [all...] |
| /illumos-gate/usr/src/uts/common/io/rsm/ |
| H A D | rsmka_pathmanager.c | 77 * (mutex) work_queue.work_mutex 82 * (mutex) adapter_listhead_base.listlock 84 * Always acquired before listhead->mutex 87 * (mutex) ipc_info_lock 89 * Always acquired before listhead->mutex 91 * (mutex) listhead->mutex 95 * (mutex) path->mutex 100 * (mutex) adapte [all...] |
| /illumos-gate/usr/src/uts/common/idmap/ |
| H A D | idmap_cache.c | 184 mutex_init(&cache->sid2pid.mutex, NULL, MUTEX_DEFAULT, NULL); 194 mutex_init(&cache->uid2sid.mutex, NULL, MUTEX_DEFAULT, NULL); 201 mutex_init(&cache->gid2sid.mutex, NULL, MUTEX_DEFAULT, NULL); 221 mutex_destroy(&cache->sid2pid.mutex); 230 mutex_destroy(&cache->uid2sid.mutex); 239 mutex_destroy(&cache->gid2sid.mutex); 247 mutex_enter(&cache->sid2pid.mutex); 251 mutex_exit(&cache->sid2pid.mutex); 253 mutex_enter(&cache->uid2sid.mutex); 255 mutex_exit(&cache->uid2sid.mutex); [all...] |