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

Function kmem_alloc_contig_domainset

freebsd/vm/vm_kern.c:342–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340}
341
342vm_offset_t
343kmem_alloc_contig_domainset(struct domainset *ds, vm_size_t size, int flags,
344 vm_paddr_t low, vm_paddr_t high, u_long alignment, vm_paddr_t boundary,
345 vm_memattr_t memattr)
346{
347 struct vm_domainset_iter di;
348 vm_offset_t addr;
349 int domain;
350
351 vm_domainset_iter_policy_init(&di, ds, &domain, &flags);
352 do {
353 addr = kmem_alloc_contig_domain(domain, size, flags, low, high,
354 alignment, boundary, memattr);
355 if (addr != 0)
356 break;
357 } while (vm_domainset_iter_policy(&di, &domain) == 0);
358
359 return (addr);
360}
361
362/*
363 * kmem_subinit:

Callers 5

pmap_pdpt_allocfFunction · 0.85
contigmalloc_domainsetFunction · 0.85
bounce_bus_dmamem_allocFunction · 0.85
kmem_alloc_contigFunction · 0.85
contig_allocFunction · 0.85

Calls 3

kmem_alloc_contig_domainFunction · 0.85
vm_domainset_iter_policyFunction · 0.70

Tested by

no test coverage detected