Lines Matching defs:snap_ctl
140 static struct snapshot_id snap_ctl;
404 rw_init(&snap_ctl.sid_rwlock, NULL, RW_DEFAULT, NULL);
405 rw_enter(&snap_ctl.sid_rwlock, RW_WRITER);
407 snap_ctl.sid_snapnumber = SNAP_CTL_MINOR;
409 snap_ctl.sid_next = NULL;
410 snap_ctl.sid_cowinfo = NULL;
411 snap_ctl.sid_flags = 0;
412 rw_exit(&snap_ctl.sid_rwlock);
443 ((snap_ctl.sid_flags & SID_CHAR_BUSY) != 0)) {
462 ASSERT((snap_ctl.sid_flags & SID_CHAR_BUSY) == 0);
463 rw_destroy(&snap_ctl.sid_rwlock);
497 rw_enter(&snap_ctl.sid_rwlock, RW_WRITER);
498 if ((snap_ctl.sid_flags & SID_CHAR_BUSY) != 0) {
499 rw_exit(&snap_ctl.sid_rwlock);
503 snap_ctl.sid_flags |= SID_CHAR_BUSY;
504 rw_exit(&snap_ctl.sid_rwlock);
569 rw_enter(&snap_ctl.sid_rwlock, RW_WRITER);
570 snap_ctl.sid_flags &= ~(SID_CHAR_BUSY);
571 rw_exit(&snap_ctl.sid_rwlock);