Lines Matching defs:zs
185 zfsdev_state_t *zs = data;
187 ASSERT(zs != NULL);
191 ASSERT(zs->zs_minor != 0);
193 zs->zs_minor = -1;
194 zfs_onexit_destroy(zs->zs_onexit);
195 zfs_zevent_destroy(zs->zs_zevent);
196 zs->zs_onexit = NULL;
197 zs->zs_zevent = NULL;
207 zfsdev_state_t *zs, *zsprev = NULL;
215 for (zs = zfsdev_state_list; zs != NULL; zs = zs->zs_next) {
216 if (zs->zs_minor == -1)
218 zsprev = zs;
221 if (!zs) {
222 zs = kmem_zalloc(sizeof (zfsdev_state_t), KM_SLEEP);
226 devfs_set_cdevpriv(zs, zfsdev_close);
228 zfs_onexit_init((zfs_onexit_t **)&zs->zs_onexit);
229 zfs_zevent_init((zfs_zevent_t **)&zs->zs_zevent);
232 zs->zs_minor = minor;
234 zsprev->zs_next = zs;
237 zs->zs_minor = minor;