Searched refs:buffer_lock (Results 1 – 2 of 2) sorted by relevance
60 static pthread_mutex_t buffer_lock = PTHREAD_MUTEX_INITIALIZER; variable547 (void) pthread_mutex_lock(&buffer_lock); in get_seqnum()551 (void) pthread_mutex_unlock(&buffer_lock); in get_seqnum()576 (void) pthread_mutex_lock(&buffer_lock); in add_buffer()581 (void) pthread_mutex_unlock(&buffer_lock); in add_buffer()594 (void) pthread_mutex_lock(&buffer_lock); in free_buffer()615 (void) pthread_mutex_unlock(&buffer_lock); in free_buffer()
90 static kmutex_t buffer_lock; /* protects r/w accesses to buffer */ variable204 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()