MCPcopy Create free account
hub / github.com/YatSenOS/YatSenOS-Tutorial-Volume-1 / releasePhysicalPages

Method releasePhysicalPages

lab8/src/1/src/kernel/memory.cpp:100–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void MemoryManager::releasePhysicalPages(enum AddressPoolType type, const int paddr, const int count)
101{
102 if (type == AddressPoolType::KERNEL)
103 {
104 kernelPhysical.release(paddr, count);
105 }
106 else if (type == AddressPoolType::USER)
107 {
108
109 userPhysical.release(paddr, count);
110 }
111}
112
113int MemoryManager::getTotalMemory()
114{

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.45

Tested by

no test coverage detected