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

Method releasePhysicalPages

lab7/src/4/src/kernel/memory.cpp:79–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.45

Tested by

no test coverage detected