| /illumos-gate/usr/src/cmd/rcm_daemon/common/ |
| H A D | dump_rcm.c | 70 static mutex_t cache_lock; variable 130 (void) mutex_destroy(&cache_lock); in rcm_mod_fini() 146 (void) mutex_lock(&cache_lock); in dump_unregister() 152 (void) mutex_unlock(&cache_lock); in dump_unregister() 167 (void) mutex_lock(&cache_lock); in dump_getinfo() 169 (void) mutex_unlock(&cache_lock); in dump_getinfo() 175 (void) mutex_unlock(&cache_lock); in dump_getinfo() 198 (void) mutex_lock(&cache_lock); in dump_suspend() 200 (void) mutex_unlock(&cache_lock); in dump_suspend() 205 (void) mutex_unlock(&cache_lock); in dump_suspend() [all …]
|
| H A D | bridge_rcm.c | 83 static mutex_t cache_lock; variable 151 (void) mutex_init(&cache_lock, 0, NULL); in rcm_mod_init() 190 (void) mutex_destroy(&cache_lock); in rcm_mod_fini() 242 (void) mutex_lock(&cache_lock); in bridge_unregister() 252 (void) mutex_unlock(&cache_lock); in bridge_unregister() 291 (void) mutex_lock(&cache_lock); in bridge_offline() 297 (void) mutex_unlock(&cache_lock); in bridge_offline() 305 (void) mutex_unlock(&cache_lock); in bridge_offline() 312 (void) mutex_unlock(&cache_lock); in bridge_offline() 320 (void) mutex_unlock(&cache_lock); in bridge_offline() [all …]
|
| H A D | vlan_rcm.c | 97 static mutex_t cache_lock; variable 174 (void) mutex_init(&cache_lock, 0, NULL); in rcm_mod_init() 213 (void) mutex_destroy(&cache_lock); in rcm_mod_fini() 263 (void) mutex_lock(&cache_lock); in vlan_unregister() 271 (void) mutex_unlock(&cache_lock); in vlan_unregister() 278 (void) mutex_unlock(&cache_lock); in vlan_unregister() 312 (void) mutex_lock(&cache_lock); in vlan_offline() 318 (void) mutex_unlock(&cache_lock); in vlan_offline() 332 (void) mutex_unlock(&cache_lock); in vlan_offline() 340 (void) mutex_unlock(&cache_lock); in vlan_offline() [all …]
|
| H A D | ibpart_rcm.c | 97 static mutex_t cache_lock; variable 174 (void) mutex_init(&cache_lock, 0, NULL); in rcm_mod_init() 213 (void) mutex_destroy(&cache_lock); in rcm_mod_fini() 263 (void) mutex_lock(&cache_lock); in ibpart_unregister() 271 (void) mutex_unlock(&cache_lock); in ibpart_unregister() 278 (void) mutex_unlock(&cache_lock); in ibpart_unregister() 312 (void) mutex_lock(&cache_lock); in ibpart_offline() 318 (void) mutex_unlock(&cache_lock); in ibpart_offline() 332 (void) mutex_unlock(&cache_lock); in ibpart_offline() 340 (void) mutex_unlock(&cache_lock); in ibpart_offline() [all …]
|
| H A D | vnic_rcm.c | 97 static mutex_t cache_lock; variable 174 (void) mutex_init(&cache_lock, 0, NULL); in rcm_mod_init() 213 (void) mutex_destroy(&cache_lock); in rcm_mod_fini() 263 (void) mutex_lock(&cache_lock); in vnic_unregister() 271 (void) mutex_unlock(&cache_lock); in vnic_unregister() 278 (void) mutex_unlock(&cache_lock); in vnic_unregister() 312 (void) mutex_lock(&cache_lock); in vnic_offline() 318 (void) mutex_unlock(&cache_lock); in vnic_offline() 332 (void) mutex_unlock(&cache_lock); in vnic_offline() 340 (void) mutex_unlock(&cache_lock); in vnic_offline() [all …]
|
| H A D | aggr_rcm.c | 98 static mutex_t cache_lock; variable 180 (void) mutex_init(&cache_lock, USYNC_THREAD, NULL); in rcm_mod_init() 225 (void) mutex_lock(&cache_lock); in rcm_mod_fini() 232 (void) mutex_unlock(&cache_lock); in rcm_mod_fini() 233 (void) mutex_destroy(&cache_lock); in rcm_mod_fini() 330 (void) mutex_lock(&cache_lock); in aggr_unregister() 339 (void) mutex_unlock(&cache_lock); in aggr_unregister() 346 (void) mutex_unlock(&cache_lock); in aggr_unregister() 382 (void) mutex_lock(&cache_lock); in aggr_offline() 388 (void) mutex_unlock(&cache_lock); in aggr_offline() [all …]
|
| H A D | swap_rcm.c | 77 static mutex_t cache_lock; variable 144 (void) mutex_destroy(&cache_lock); in rcm_mod_fini() 160 (void) mutex_lock(&cache_lock); in swap_unregister() 166 (void) mutex_unlock(&cache_lock); in swap_unregister() 178 (void) mutex_lock(&cache_lock); in swap_getinfo() 182 (void) mutex_unlock(&cache_lock); in swap_getinfo() 185 (void) mutex_unlock(&cache_lock); in swap_getinfo() 209 (void) mutex_lock(&cache_lock); in swap_suspend() 211 (void) mutex_unlock(&cache_lock); in swap_suspend() 216 (void) mutex_unlock(&cache_lock); in swap_suspend() [all …]
|
| H A D | network_rcm.c | 75 static mutex_t cache_lock; variable 144 (void) mutex_init(&cache_lock, USYNC_THREAD, NULL); in rcm_mod_init() 177 (void) mutex_destroy(&cache_lock); in rcm_mod_fini() 234 (void) mutex_lock(&cache_lock); in net_unregister() 242 (void) mutex_unlock(&cache_lock); in net_unregister() 283 (void) mutex_lock(&cache_lock); in net_passthru() 288 (void) mutex_unlock(&cache_lock); in net_passthru() 313 (void) mutex_unlock(&cache_lock); in net_passthru() 437 (void) mutex_lock(&cache_lock); in net_getinfo() 442 (void) mutex_unlock(&cache_lock); in net_getinfo() [all …]
|
| H A D | ip_rcm.c | 157 static mutex_t cache_lock; variable 255 (void) mutex_init(&cache_lock, USYNC_THREAD, NULL); in rcm_mod_init() 297 (void) mutex_destroy(&cache_lock); in rcm_mod_fini() 354 (void) mutex_lock(&cache_lock); in ip_unregister() 360 (void) mutex_unlock(&cache_lock); in ip_unregister() 367 (void) mutex_unlock(&cache_lock); in ip_unregister() 412 (void) mutex_lock(&cache_lock); in ip_offline() 417 (void) mutex_unlock(&cache_lock); in ip_offline() 445 (void) mutex_unlock(&cache_lock); in ip_offline() 454 (void) mutex_unlock(&cache_lock); in ip_offline() [all …]
|
| H A D | filesys_rcm.c | 138 static mutex_t cache_lock; variable 174 (void) mutex_lock(&cache_lock); in rcm_mod_fini() 176 (void) mutex_unlock(&cache_lock); in rcm_mod_fini() 197 (void) mutex_lock(&cache_lock); in mnt_register() 204 (void) mutex_unlock(&cache_lock); in mnt_register() 208 (void) mutex_unlock(&cache_lock); in mnt_register() 232 (void) mutex_lock(&cache_lock); in mnt_unregister() 247 (void) mutex_unlock(&cache_lock); in mnt_unregister() 289 (void) mutex_lock(&cache_lock); in mnt_offline() 294 (void) mutex_unlock(&cache_lock); in mnt_offline() [all …]
|
| /illumos-gate/usr/src/cmd/fs.d/nfs/mountd/ |
| H A D | netgroup.c | 70 static rwlock_t cache_lock; /* protect the cache chain */ variable 80 (void) rwlock_init(&cache_lock, USYNC_THREAD, NULL); in netgroup_init() 225 (void) rw_rdlock(&cache_lock); in cache_check() 237 (void) rw_unlock(&cache_lock); in cache_check() 238 (void) rw_wrlock(&cache_lock); in cache_check() 253 (void) rw_unlock(&cache_lock); in cache_check() 270 (void) rw_unlock(&cache_lock); in cache_check() 275 (void) rw_unlock(&cache_lock); in cache_check() 321 (void) rw_wrlock(&cache_lock); in cache_enter() 324 (void) rw_unlock(&cache_lock); in cache_enter() [all …]
|
| /illumos-gate/usr/src/lib/libnsl/yp/ |
| H A D | yp_match.c | 70 static mutex_t cache_lock = DEFAULTMUTEX; variable 201 (void) mutex_lock(&cache_lock); in __yp_match_cflookup() 209 (void) mutex_unlock(&cache_lock); in __yp_match_cflookup() 214 (void) mutex_unlock(&cache_lock); in __yp_match_cflookup() 217 (void) mutex_unlock(&cache_lock); in __yp_match_cflookup() 247 (void) mutex_lock(&cache_lock); in __yp_match_cflookup() 285 (void) mutex_unlock(&cache_lock); in __yp_match_cflookup() 321 (void) mutex_lock(&cache_lock); in __empty_yp_cache() 324 (void) mutex_unlock(&cache_lock); in __empty_yp_cache() 385 (void) mutex_lock(&cache_lock); in __yp_match_rsvdport_cflookup() [all …]
|
| /illumos-gate/usr/src/lib/libslp/clib/ |
| H A D | slp_da_cache.c | 81 static mutex_t cache_lock = DEFAULTMUTEX; variable 111 (void) mutex_lock(&cache_lock); in slp_find_das_cached() 138 (void) mutex_unlock(&cache_lock); in slp_find_das_cached() 183 (void) mutex_lock(&cache_lock); in slp_put_das_cached() 193 (void) mutex_unlock(&cache_lock); in slp_put_das_cached() 258 (void) mutex_lock(&cache_lock); in cache_thr() 264 (void) mutex_unlock(&cache_lock); in cache_thr()
|
| /illumos-gate/usr/src/uts/common/os/ |
| H A D | kmem.c | 1232 mutex_enter(&cp->cache_lock); in kmem_findslab() 1236 mutex_exit(&cp->cache_lock); in kmem_findslab() 1243 mutex_exit(&cp->cache_lock); in kmem_findslab() 1247 mutex_exit(&cp->cache_lock); in kmem_findslab() 1289 mutex_enter(&cp->cache_lock); in kmem_error() 1293 mutex_exit(&cp->cache_lock); in kmem_error() 1509 ASSERT(MUTEX_NOT_HELD(&cp->cache_lock)); in kmem_slab_create() 1616 ASSERT(MUTEX_NOT_HELD(&cp->cache_lock)); in kmem_slab_destroy() 1637 ASSERT(MUTEX_HELD(&cp->cache_lock)); in kmem_slab_alloc_impl() 1722 mutex_enter(&cp->cache_lock); in kmem_slab_alloc() [all …]
|
| /illumos-gate/usr/src/lib/libc/port/locale/ |
| H A D | localeimpl.c | 213 static mutex_t cache_lock = DEFAULTMUTEX; variable 230 lmutex_lock(&cache_lock); in locdata_get_cache() 234 lmutex_unlock(&cache_lock); in locdata_get_cache() 267 lmutex_unlock(&cache_lock); in locdata_get_cache() 269 lmutex_lock(&cache_lock); in locdata_get_cache() 289 lmutex_unlock(&cache_lock); in locdata_get_cache()
|
| /illumos-gate/usr/src/cmd/isns/isnsd/ |
| H A D | cache.c | 133 cache_lock(int mode) in cache_lock() function 226 return (cache_lock(CACHE_READ)); in cache_lock_read() 241 return (cache_lock(CACHE_WRITE)); in cache_lock_write()
|
| H A D | isns_cache.h | 70 int cache_lock(int);
|
| H A D | dump.c | 1409 cache_lock(conn.lock); in new_dd_dds() 1488 cache_lock(conn.lock); in del_dd_dds() 1568 cache_lock(conn.lock); in update_dds() 1700 cache_lock(conn.lock); in update_member()
|
| /illumos-gate/usr/src/lib/libumem/common/ |
| H A D | umem.c | 1059 (void) mutex_lock(&cp->cache_lock); in umem_findslab() 1063 (void) mutex_unlock(&cp->cache_lock); in umem_findslab() 1067 (void) mutex_unlock(&cp->cache_lock); in umem_findslab() 1111 (void) mutex_lock(&cp->cache_lock); in umem_error() 1115 (void) mutex_unlock(&cp->cache_lock); in umem_error() 1528 (void) mutex_lock(&cp->cache_lock); in umem_slab_alloc() 1536 (void) mutex_unlock(&cp->cache_lock); in umem_slab_alloc() 1541 (void) mutex_lock(&cp->cache_lock); in umem_slab_alloc() 1582 (void) mutex_unlock(&cp->cache_lock); in umem_slab_alloc() 1598 (void) mutex_lock(&cp->cache_lock); in umem_slab_free() [all …]
|
| H A D | umem_fork.c | 47 (void) mutex_lock(&cp->cache_lock); in umem_lockup_cache() 56 (void) mutex_unlock(&cp->cache_lock); in umem_release_cache()
|
| /illumos-gate/usr/src/cmd/keyserv/ |
| H A D | keyserv_cache.c | 49 static mutex_t cache_lock = DEFAULTMUTEX; variable 1098 #define INCCACHEREFCNT mutex_lock(&cache_lock); \ 1100 mutex_unlock(&cache_lock) 1103 #define DECCACHEREFCNT mutex_lock(&cache_lock); \ 1106 mutex_unlock(&cache_lock) 1108 #define DECCACHEREFCNT mutex_lock(&cache_lock); \ 1110 mutex_unlock(&cache_lock) 1133 mutex_lock(&cache_lock); in get_cache_header() 1139 (void) cond_wait(&cache_cv, &cache_lock); in get_cache_header() 1151 mutex_unlock(&cache_lock); in get_cache_header() [all …]
|
| /illumos-gate/usr/src/cmd/ldapcachemgr/ |
| H A D | cachemgr_getldap.c | 307 static rwlock_t cache_lock = DEFAULTRWLOCK; in getldap_cache_op() local 319 (void) rw_wrlock(&cache_lock); in getldap_cache_op() 326 (void) rw_unlock(&cache_lock); in getldap_cache_op() 333 (void) rw_wrlock(&cache_lock); in getldap_cache_op() 344 (void) rw_unlock(&cache_lock); in getldap_cache_op() 354 (void) rw_wrlock(&cache_lock); in getldap_cache_op() 366 (void) rw_unlock(&cache_lock); in getldap_cache_op() 372 (void) rw_unlock(&cache_lock); in getldap_cache_op() 378 (void) rw_unlock(&cache_lock); in getldap_cache_op() 387 (void) rw_unlock(&cache_lock); in getldap_cache_op() [all …]
|
| /illumos-gate/usr/src/lib/libdiskmgt/common/ |
| H A D | cache.c | 58 static rwlock_t cache_lock = DEFAULTRWLOCK; variable 438 (void) rw_rdlock(&cache_lock); in cache_rlock() 444 (void) rw_unlock(&cache_lock); in cache_unlock() 481 (void) rw_wrlock(&cache_lock); in cache_wlock()
|
| /illumos-gate/usr/src/cmd/fs.d/autofs/ |
| H A D | autod_nfs.c | 130 rwlock_t cache_lock; /* protect the cache chain */ variable 3696 (void) rw_wrlock(&cache_lock); in cache_enter() 3702 (void) rw_unlock(&cache_lock); in cache_enter() 3713 (void) rw_rdlock(&cache_lock); in cache_check() 3725 (void) rw_unlock(&cache_lock); in cache_check() 3726 (void) rw_wrlock(&cache_lock); in cache_check() 3738 (void) rw_unlock(&cache_lock); in cache_check() 3764 (void) rw_unlock(&cache_lock); in cache_check() 3768 (void) rw_unlock(&cache_lock); in cache_check() 3796 (void) rw_wrlock(&cache_lock); in cache_flush() [all …]
|
| H A D | automount.h | 261 extern rwlock_t cache_lock;
|