MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / unmap

Method unmap

source/kernel/kmemory.cpp:270–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270U32 KMemory::unmap(U32 address, U32 len) {
271 U32 pageStart = address >> K_PAGE_SHIFT;
272 U32 pageCount = (len + K_PAGE_SIZE - 1) >> K_PAGE_SHIFT;
273
274 this->data->setPagesInvalid(pageStart, pageCount);
275 return 0;
276}
277
278U32 KMemory::mapPages(KThread* thread, U32 startPage, const std::vector<RamPage>& pages, U32 permissions) {
279 BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(mutex);

Callers 5

mremapMethod · 0.95
syscall_unmapFunction · 0.80
shmdtMethod · 0.80
freeAllMethod · 0.80
freeMethod · 0.80

Calls 1

setPagesInvalidMethod · 0.80

Tested by

no test coverage detected