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

Method releasePhysicalPages

lab7/src/3/src/kernel/memory.cpp:77–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void MemoryManager::releasePhysicalPages(enum AddressPoolType type, const int paddr, const int count)
78{
79 if (type == AddressPoolType::KERNEL)
80 {
81 kernelPhysical.release(paddr, count);
82 }
83 else if (type == AddressPoolType::USER)
84 {
85
86 userPhysical.release(paddr, count);
87 }
88}
89
90int MemoryManager::getTotalMemory()
91{

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.45

Tested by

no test coverage detected