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

Function ClearBit

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

Clears a bit in the physical memory bitmap

Source from the content-addressed store, hash-verified

31
32 // Clears a bit in the physical memory bitmap
33 inline void ClearBit(uint64_t bit) {
34 physicalMemoryBitmap[bit >> 5] &= ~ (1 << (bit % 32));
35 }
36
37 // Tests a bit in the physical memory bitmap
38 inline bool TestBit(uint64_t bit) {

Callers 3

MarkMemoryRegionFreeFunction · 0.85
FreePhysicalMemoryBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected