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

Function kstack_import

freebsd/vm/vm_glue.c:439–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437}
438
439static int
440kstack_import(void *arg, void **store, int cnt, int domain, int flags)
441{
442 struct domainset *ds;
443 int i;
444
445 if (domain == UMA_ANYDOMAIN)
446 ds = DOMAINSET_RR();
447 else
448 ds = DOMAINSET_PREF(domain);
449
450 for (i = 0; i < cnt; i++) {
451 store[i] = (void *)vm_thread_stack_create(ds, kstack_pages);
452 if (store[i] == NULL)
453 break;
454 }
455 return (i);
456}
457
458static void
459kstack_release(void *arg, void **store, int cnt)

Callers

nothing calls this directly

Calls 1

vm_thread_stack_createFunction · 0.85

Tested by

no test coverage detected