MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / TestBit

Function TestBit

Kernel/src/arch/x86_64/physicalallocator.cpp:38–40  ·  view source on GitHub ↗

Tests a bit in the physical memory bitmap

Source from the content-addressed store, hash-verified

36
37 // Tests a bit in the physical memory bitmap
38 inline bool TestBit(uint64_t bit) {
39 return physicalMemoryBitmap[bit >> 5] & (1 << (bit % 32));
40 }
41
42 // Finds the first free block in physical memory
43 uint64_t GetFirstFreeMemoryBlock() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected