Lines Matching refs:snp
1633 evchanq_t *snp; /* Pointer to q with snapshot of ev */ in evch_chrdevent_init() local
1665 snp = kmem_alloc(sizeof (evchanq_t), KM_SLEEP); in evch_chrdevent_init()
1666 snp->sn_queue = evch_evq_create(); in evch_chrdevent_init()
1667 evch_evq_stop(snp->sn_queue); in evch_chrdevent_init()
1674 (void) evch_evq_pub(snp->sn_queue, ev, EVCH_SLEEP); in evch_chrdevent_init()
1679 (void) evch_evq_pub(snp->sn_queue, ev, EVCH_SLEEP); in evch_chrdevent_init()
1681 snp->sn_nxtev = NULL; in evch_chrdevent_init()
1690 return (snp); in evch_chrdevent_init()
1698 evch_chrdevent_fini(evchanq_t *snp) in evch_chrdevent_fini() argument
1700 if (snp != NULL) { in evch_chrdevent_fini()
1701 evch_evq_destroy(snp->sn_queue); in evch_chrdevent_fini()
1702 kmem_free(snp, sizeof (evchanq_t)); in evch_chrdevent_fini()
1714 evch_chgetnextev(evchanq_t *snp) in evch_chgetnextev() argument
1746 ASSERT(snp != NULL); in evch_chgetnextev()
1747 snp->sn_nxtev = (sysevent_impl_t *)evch_evq_evnext(snp->sn_queue, in evch_chgetnextev()
1748 snp->sn_nxtev); in evch_chgetnextev()
1749 return (snp->sn_nxtev); in evch_chgetnextev()