794: }
795: bzero(phpool, sizeof phpool);
796:
798: mutex_destroy(&pool_allocator_kmem.pa_lock);
799: bzero(&pool_allocator_kmem, sizeof pool_allocator_kmem);
800: pool_allocator_kmem.pa_alloc = pool_page_alloc;
804: mutex_destroy(&pool_allocator_nointr.pa_lock);
805: bzero(&pool_allocator_nointr, sizeof pool_allocator_nointr);
806: pool_allocator_nointr.pa_alloc = pool_page_alloc_nointr;
810: mutex_destroy(&pool_allocator_meta.pa_lock);
811: bzero(&pool_allocator_meta, sizeof pool_allocator_meta);
812: pool_allocator_meta.pa_alloc = pool_page_alloc_meta;
817: mutex_destroy(&pool_allocator_kmem_fullpage.pa_lock);
818: bzero(&pool_allocator_kmem_fullpage, sizeof pool_allocator_kmem_fullpage);
819: pool_allocator_kmem_fullpage.pa_alloc = pool_page_alloc;
823: mutex_destroy(&pool_allocator_nointr_fullpage.pa_lock);
824: bzero(&pool_allocator_nointr_fullpage, sizeof pool_allocator_nointr_fullpage);
825: pool_allocator_nointr_fullpage.pa_alloc = pool_page_alloc_nointr;
1161: }
1162: bzero(phpool, sizeof phpool);
1163: cv_destroy(&pp->pr_cv);
1172: pa_free = palloc->pa_free;
1173: bzero(palloc, sizeof *palloc);
1174: palloc->pa_alloc = pa_alloc;