KSTAT_SNAPSHOT
error = KSTAT_SNAPSHOT(ksp, kbuf, KSTAT_READ);
error = KSTAT_SNAPSHOT(ksp, buf, KSTAT_WRITE);