Lines Matching defs:kstat
76 #include <sys/kstat.h>
680 kstat_t *kstat;
683 if ((kstat = kstat_create(
692 /* only one kstat can exist at a time */
696 kstat_delete(kstat);
700 vdp->xdf_xdev_iostat = kstat;
705 * Now that we've created a kstat, we need to update the waitq and
706 * runq counts for the kstat to reflect our current state.
736 kstat_t *kstat;
742 * and the contents of the our kstat. xdf_iostat_lk is used
743 * to protect the allocation and freeing of the actual kstat.
744 * xdf_dev_lk can't be used for this purpose because kstat
745 * readers use it to access the contents of the kstat and
758 * We're about to destroy the kstat structures, so it isn't really
761 * go ahead and decrement the runq and waitq kstat counters to zero
777 kstat = vdp->xdf_xdev_iostat;
780 kstat_delete(kstat);
3369 /* create kstat for iostat(1M) */
3371 cmn_err(CE_WARN, "xdf@%s: failed to create kstat",