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

Function uma_zcache_create

freebsd/vm/uma_core.c:3136–3157  ·  view source on GitHub ↗

See uma.h */

Source from the content-addressed store, hash-verified

3134
3135/* See uma.h */
3136uma_zone_t
3137uma_zcache_create(const char *name, int size, uma_ctor ctor, uma_dtor dtor,
3138 uma_init zinit, uma_fini zfini, uma_import zimport, uma_release zrelease,
3139 void *arg, int flags)
3140{
3141 struct uma_zctor_args args;
3142
3143 memset(&args, 0, sizeof(args));
3144 args.name = name;
3145 args.size = size;
3146 args.ctor = ctor;
3147 args.dtor = dtor;
3148 args.uminit = zinit;
3149 args.fini = zfini;
3150 args.import = zimport;
3151 args.release = zrelease;
3152 args.arg = arg;
3153 args.align = 0;
3154 args.flags = flags | UMA_ZFLAG_CACHE;
3155
3156 return (zone_alloc_item(zones, &args, UMA_ANYDOMAIN, M_WAITOK));
3157}
3158
3159/* See uma.h */
3160void

Callers 5

bufinitFunction · 0.85
debugnet_mbuf_reinitFunction · 0.85
qc_initFunction · 0.85
kstack_cache_initFunction · 0.85
vm_page_init_cache_zonesFunction · 0.85

Calls 2

memsetFunction · 0.85
zone_alloc_itemFunction · 0.85

Tested by

no test coverage detected