Lines Matching defs:snp
1631 evchanq_t *snp; /* Pointer to q with snapshot of ev */
1663 snp = kmem_alloc(sizeof (evchanq_t), KM_SLEEP);
1664 snp->sn_queue = evch_evq_create();
1665 evch_evq_stop(snp->sn_queue);
1672 (void) evch_evq_pub(snp->sn_queue, ev, EVCH_SLEEP);
1677 (void) evch_evq_pub(snp->sn_queue, ev, EVCH_SLEEP);
1679 snp->sn_nxtev = NULL;
1688 return (snp);
1693 * context snp must be NULL and no resources need to be free'ed.
1696 evch_chrdevent_fini(evchanq_t *snp)
1698 if (snp != NULL) {
1699 evch_evq_destroy(snp->sn_queue);
1700 kmem_free(snp, sizeof (evchanq_t));
1712 evch_chgetnextev(evchanq_t *snp)
1744 ASSERT(snp != NULL);
1745 snp->sn_nxtev = (sysevent_impl_t *)evch_evq_evnext(snp->sn_queue,
1746 snp->sn_nxtev);
1747 return (snp->sn_nxtev);