Lines Matching defs:rwlock
159 * uri_hash_access - rwlock for all uri_hash_* variables, READER for read
569 uri_add(uri_desc_t *uri, krw_t rwlock, boolean_t nonblocking)
577 * Caller of uri_add() must hold the uri_hash_access rwlock.
579 ASSERT((rwlock == RW_READER && RW_READ_HELD(&uri_hash_access)) ||
580 (rwlock == RW_WRITER && RW_WRITE_HELD(&uri_hash_access)));
614 if (rwlock != RW_WRITER && ! rw_tryupgrade(&uri_hash_access)) {
632 rwlock = RW_WRITER;
633 rw_enter(&uri_hash_access, rwlock);
638 rwlock = RW_WRITER;
679 * can't be destroyed while in the uri_hash_access rwlock, worst
716 * If we don't already hold the uri_hash_access rwlock for
720 if ((rwlock == RW_WRITER || rw_tryupgrade(&uri_hash_access)) &&