Lines Matching defs:ks_lock
92 void *ks_lock; /* protects this kstat's data */
135 * *optionally* protected by the per-kstat ks_lock. If ks_lock is non-NULL,
141 * ks_lock to point to that mutex, then kstat data locking is free.
146 * NOTE: ks_lock is really of type (kmutex_t *); it is declared as (void *)
154 { kmutex_t *lp = (k)->ks_lock; if (lp) mutex_enter(lp); }
157 { kmutex_t *lp = (k)->ks_lock; if (lp) mutex_exit(lp); }
353 * will already be holding the kstat's ks_lock (to ensure consistent data).
749 * ks_snapshot, ks_private, and ks_lock fields if necessary.
761 * you must NOT be holding that kstat's ks_lock. Otherwise, you may
780 * sets the ks_lock, ks_update, ks_private, and ks_snapshot fields back