Lines Matching defs:zs
93 zfsdev_state_t *zs, *zsprev = NULL;
103 for (zs = zfsdev_state_list; zs != NULL; zs = zs->zs_next) {
104 if (zs->zs_minor == -1)
106 zsprev = zs;
109 if (!zs) {
110 zs = kmem_zalloc(sizeof (zfsdev_state_t), KM_SLEEP);
114 filp->private_data = zs;
116 zfs_onexit_init((zfs_onexit_t **)&zs->zs_onexit);
117 zfs_zevent_init((zfs_zevent_t **)&zs->zs_zevent);
128 zs->zs_minor = minor;
130 zsprev->zs_next = zs;
133 zs->zs_minor = minor;
142 zfsdev_state_t *zs;
147 zs = filp->private_data;
148 zs->zs_minor = -1;
149 zfs_onexit_destroy(zs->zs_onexit);
150 zfs_zevent_destroy(zs->zs_zevent);
151 zs->zs_onexit = NULL;
152 zs->zs_zevent = NULL;