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

Function vmem_set_import

freebsd/kern/subr_vmem.c:1200–1212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1198/* ---- vmem API */
1199
1200void
1201vmem_set_import(vmem_t *vm, vmem_import_t *importfn,
1202 vmem_release_t *releasefn, void *arg, vmem_size_t import_quantum)
1203{
1204
1205 VMEM_LOCK(vm);
1206 KASSERT(vm->vm_size == 0, ("%s: arena is non-empty", __func__));
1207 vm->vm_importfn = importfn;
1208 vm->vm_releasefn = releasefn;
1209 vm->vm_arg = arg;
1210 vm->vm_import_quantum = import_quantum;
1211 VMEM_UNLOCK(vm);
1212}
1213
1214void
1215vmem_set_limit(vmem_t *vm, vmem_size_t limit)

Callers 2

pmap_init_trmFunction · 0.85
kmem_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected