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

Function bucket_zone_lookup

freebsd/vm/uma_core.c:431–441  ·  view source on GitHub ↗

* Given a desired number of entries for a bucket, return the zone from which * to allocate the bucket. */

Source from the content-addressed store, hash-verified

429 * to allocate the bucket.
430 */
431static struct uma_bucket_zone *
432bucket_zone_lookup(int entries)
433{
434 struct uma_bucket_zone *ubz;
435
436 for (ubz = &bucket_zones[0]; ubz->ubz_entries != 0; ubz++)
437 if (ubz->ubz_entries >= entries)
438 return (ubz);
439 ubz--;
440 return (ubz);
441}
442
443static int
444bucket_select(int size)

Callers 2

bucket_allocFunction · 0.85
bucket_freeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected