Home
last modified time | relevance | path

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

/illumos-gate/usr/src/uts/common/io/
H A Deventfd.c36 kmutex_t efd_lock; /* lock protecting state */ member
100 mutex_enter(&state->efd_lock); in eventfd_read()
104 mutex_exit(&state->efd_lock); in eventfd_read()
108 if (!cv_wait_sig_swap(&state->efd_cv, &state->efd_lock)) { in eventfd_read()
109 mutex_exit(&state->efd_lock); in eventfd_read()
137 mutex_exit(&state->efd_lock); in eventfd_read()
170 mutex_enter(&state->efd_lock); in eventfd_write()
174 mutex_exit(&state->efd_lock); in eventfd_write()
179 if (!cv_wait_sig_swap(&state->efd_cv, &state->efd_lock)) { in eventfd_write()
181 mutex_exit(&state->efd_lock); in eventfd_write()
[all …]