Lines Matching defs:zd
62 zone_dataset_t *zd, *zd2;
70 zd = malloc(sizeof (*zd) + strlen(dataset) + 1, M_ZONES, M_WAITOK);
76 free(zd, M_ZONES);
85 free(zd, M_ZONES);
101 strcpy(zd->zd_dataset, dataset);
102 LIST_INSERT_HEAD(head, zd, zd_next);
115 zone_dataset_t *zd;
132 LIST_FOREACH(zd, head, zd_next) {
133 if (strcmp(dataset, zd->zd_dataset) == 0)
136 if (zd == NULL)
139 LIST_REMOVE(zd, zd_next);
140 free(zd, M_ZONES);
158 zone_dataset_t *zd;
181 LIST_FOREACH(zd, head, zd_next) {
182 len = strlen(zd->zd_dataset);
184 memcmp(dataset, zd->zd_dataset, len) == 0 &&
201 LIST_FOREACH(zd, head, zd_next) {
205 if (len < strlen(zd->zd_dataset) &&
206 memcmp(dataset, zd->zd_dataset, len) == 0 &&
207 zd->zd_dataset[len] == '/') {
223 zone_dataset_t *zd;
226 while ((zd = LIST_FIRST(head)) != NULL) {
227 LIST_REMOVE(zd, zd_next);
228 free(zd, M_ZONES);