MCPcopy Create free account
hub / github.com/F-Stack/f-stack / hash_free

Function hash_free

freebsd/vm/uma_core.c:1123–1132  ·  view source on GitHub ↗

* Free the hash bucket to the appropriate backing store. * * Arguments: * slab_hash The hash bucket we're freeing * hashsize The number of entries in that hash bucket * * Returns: * Nothing */

Source from the content-addressed store, hash-verified

1121 * Nothing
1122 */
1123static void
1124hash_free(struct uma_hash *hash)
1125{
1126 if (hash->uh_slab_hash == NULL)
1127 return;
1128 if (hash->uh_hashsize == UMA_HASH_SIZE_INIT)
1129 zone_free_item(hashzone, hash->uh_slab_hash, NULL, SKIP_NONE);
1130 else
1131 free(hash->uh_slab_hash, M_UMAHASH);
1132}
1133
1134/*
1135 * Frees all outstanding items in a bucket

Callers 2

zone_timeoutFunction · 0.85
keg_dtorFunction · 0.85

Calls 2

zone_free_itemFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected