Home
last modified time | relevance | path

Searched refs:buffer_lock (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/cmd/hotplugd/
H A Dhotplugd_door.c60 static pthread_mutex_t buffer_lock = PTHREAD_MUTEX_INITIALIZER; variable
545 (void) pthread_mutex_lock(&buffer_lock); in get_seqnum()
549 (void) pthread_mutex_unlock(&buffer_lock); in get_seqnum()
574 (void) pthread_mutex_lock(&buffer_lock); in add_buffer()
579 (void) pthread_mutex_unlock(&buffer_lock); in add_buffer()
592 (void) pthread_mutex_lock(&buffer_lock); in free_buffer()
613 (void) pthread_mutex_unlock(&buffer_lock); in free_buffer()
/illumos-gate/usr/src/uts/common/crypto/io/
H A Dswrand.c90 static kmutex_t buffer_lock; /* protects r/w accesses to buffer */ variable
204 mutex_init(&buffer_lock, NULL, MUTEX_DEFAULT, NULL); in _init()
257 mutex_destroy(&buffer_lock); in _init()
460 ASSERT(MUTEX_HELD(&buffer_lock)); in swrand_add_bytes_later()
480 mutex_enter(&buffer_lock); in swrand_mix_pool()
499 mutex_exit(&buffer_lock); in swrand_mix_pool()
538 mutex_enter(&buffer_lock); in swrand_add_entropy_later()
540 mutex_exit(&buffer_lock); in swrand_add_entropy_later()