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

Function vm_phys_avail_find

freebsd/vm/vm_phys.c:1530–1539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1528 */
1529#ifdef NUMA
1530static int
1531vm_phys_avail_find(vm_paddr_t pa)
1532{
1533 int i;
1534
1535 for (i = 0; phys_avail[i + 1]; i += 2)
1536 if (phys_avail[i] <= pa && phys_avail[i + 1] > pa)
1537 return (i);
1538 return (-1);
1539}
1540#endif
1541
1542/*

Callers 1

vm_phys_early_startupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected