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

Function vm_phys_avail_count

freebsd/vm/vm_phys.c:1496–1507  ·  view source on GitHub ↗

* Return the index of the first unused slot which may be the terminating * entry. */

Source from the content-addressed store, hash-verified

1494 * entry.
1495 */
1496static int
1497vm_phys_avail_count(void)
1498{
1499 int i;
1500
1501 for (i = 0; phys_avail[i + 1]; i += 2)
1502 continue;
1503 if (i > PHYS_AVAIL_ENTRIES)
1504 panic("Improperly terminated phys_avail %d entries", i);
1505
1506 return (i);
1507}
1508
1509/*
1510 * Assert that a phys_avail entry is valid.

Callers 1

vm_phys_avail_splitFunction · 0.85

Calls 1

panicFunction · 0.50

Tested by

no test coverage detected