SlabAllocatorDeinit
Description
Release every slab page and the bitmaps buffer owned by self, then zero the struct so any post-deinit dispatch trips ValidateAllocator on the cleared __magic.
Parameters
| Name | Direction | Description |
|---|---|---|
self |
in,out | SlabAllocator instance, or NULL. |
Success
Function returns. Every slot previously handed out by this slab is invalid; the struct is fully zeroed and cannot be used until re-initialised.
Failure
No action when self is NULL.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Slab.c:427:
}
void SlabAllocatorDeinit(SlabAllocator *self) {
if (!self) {
return;- In
Slab.c:49:
}
SlabAllocatorDeinit(&slab);
return ok;
}- In
Slab.c:64:
AllocatorFree(alloc_base, b);
SlabAllocatorDeinit(&slab);
return ok;
}- In
Slab.c:96:
}
SlabAllocatorDeinit(&slab);
return ok;
}- In
Slab.c:106:
bool ok = (big == NULL);
SlabAllocatorDeinit(&slab);
return ok;
}- In
Slab.c:141:
}
SlabAllocatorDeinit(&slab);
return ok;
}- In
Slab.c:154:
AllocatorFree(alloc_base, p);
}
SlabAllocatorDeinit(&slab);
return ok;
}
Last updated on