Home | History | Annotate | Download | only in kern

Lines Matching refs:shm_lock

95 static kmutex_t		shm_lock		__cacheline_aligned;
132 mutex_enter(&shm_lock);
134 mutex_exit(&shm_lock);
139 mutex_exit(&shm_lock);
145 * => must be called with shm_lock held;
153 KASSERT(mutex_owned(&shm_lock));
172 * => must be called with shm_lock held;
181 KASSERT(mutex_owned(&shm_lock));
201 * => must be called with shm_lock held;
211 KASSERT(mutex_owned(&shm_lock));
237 KASSERT(mutex_owned(&shm_lock));
271 * => must be called with shm_lock held;
279 KASSERT(mutex_owned(&shm_lock));
283 if (cmd == SHM_LOCK && (shmseg->shm_perm.mode & SHMSEG_WIRED) == 0) {
317 mutex_enter(&shm_lock);
320 cv_wait(&shm_realloc_cv, &shm_lock);
324 mutex_exit(&shm_lock);
333 mutex_exit(&shm_lock);
344 mutex_exit(&shm_lock);
356 mutex_exit(&shm_lock);
394 mutex_enter(&shm_lock);
397 cv_wait(&shm_realloc_cv, &shm_lock);
464 mutex_exit(&shm_lock);
473 mutex_exit(&shm_lock);
520 mutex_enter(&shm_lock);
523 cv_wait(&shm_realloc_cv, &shm_lock);
527 mutex_exit(&shm_lock);
566 case SHM_LOCK:
570 (cmd == SHM_LOCK) ? KAUTH_REQ_SYSTEM_SYSVIPC_SHM_LOCK :
579 mutex_exit(&shm_lock);
587 * => must be called with shm_lock held;
598 KASSERT(mutex_owned(&shm_lock));
618 error = cv_wait_sig(&shm_cv[segnum], &shm_lock);
665 mutex_enter(&shm_lock);
668 cv_wait(&shm_realloc_cv, &shm_lock);
673 mutex_exit(&shm_lock);
677 mutex_exit(&shm_lock);
688 mutex_exit(&shm_lock);
692 mutex_exit(&shm_lock);
697 mutex_exit(&shm_lock);
724 mutex_exit(&shm_lock);
733 mutex_enter(&shm_lock);
736 mutex_exit(&shm_lock);
762 mutex_enter(&shm_lock);
772 mutex_exit(&shm_lock);
784 mutex_enter(&shm_lock);
792 mutex_exit(&shm_lock);
801 mutex_enter(&shm_lock);
804 mutex_exit(&shm_lock);
815 mutex_exit(&shm_lock);
821 mutex_exit(&shm_lock);
841 mutex_exit(&shm_lock);
852 mutex_enter(&shm_lock);
878 mutex_enter(&shm_lock);
880 cv_wait(&shm_realloc_cv, &shm_lock);
891 mutex_exit(&shm_lock);
924 mutex_exit(&shm_lock);
947 mutex_init(&shm_lock, MUTEX_DEFAULT, IPL_NONE);
996 mutex_enter(&shm_lock);
998 mutex_exit(&shm_lock);
1018 mutex_exit(&shm_lock);
1019 mutex_destroy(&shm_lock);