Lines Matching defs:zsdp
611 struct zsd_entry *zsdp;
616 zsdp = kmem_zalloc(sizeof (*zsdp), KM_SLEEP);
617 zsdp->zsd_data = NULL;
618 zsdp->zsd_create = create;
619 zsdp->zsd_shutdown = shutdown;
620 zsdp->zsd_destroy = destroy;
627 key = zsdp->zsd_key = ++zsd_keyval;
629 list_insert_tail(&zsd_registered_keys, zsdp);
701 struct zsd_entry *zsdp = NULL;
705 zsdp = zsd_find_mru(&zsd_registered_keys, key);
706 if (zsdp == NULL) {
710 list_remove(&zsd_registered_keys, zsdp);
728 ASSERT(del->zsd_shutdown == zsdp->zsd_shutdown);
729 ASSERT(del->zsd_destroy == zsdp->zsd_destroy);
745 kmem_free(zsdp, sizeof (*zsdp));
751 /* Now we can free up the zsdp structures in each zone */
823 struct zsd_entry *zsdp;
830 for (zsdp = list_head(&zsd_registered_keys); zsdp != NULL;
831 zsdp = list_next(&zsd_registered_keys, zsdp)) {
836 ASSERT(zsd_find(&zone->zone_zsd, zsdp->zsd_key) == NULL);
839 t->zsd_key = zsdp->zsd_key;
840 t->zsd_create = zsdp->zsd_create;
841 t->zsd_shutdown = zsdp->zsd_shutdown;
842 t->zsd_destroy = zsdp->zsd_destroy;
843 if (zsdp->zsd_create != NULL) {
846 zone_t *, zone, zone_key_t, zsdp->zsd_key);