Skip to content

Instantly share code, notes, and snippets.

@holmeshe
Created September 20, 2018 09:02
Show Gist options
  • Save holmeshe/a561d70667f340482a6d6d4b5dfe69d8 to your computer and use it in GitHub Desktop.
Save holmeshe/a561d70667f340482a6d6d4b5dfe69d8 to your computer and use it in GitHub Desktop.
static void split_slab_page_into_freelist(char *ptr, const unsigned int id) {
slabclass_t *p = &slabclass[id];
int x;
for (x = 0; x < p->perslab; x++) {
do_slabs_free(ptr, 0, id);
ptr += p->size;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment