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

Method getRamPtr

source/kernel/kmemory.cpp:902–914  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

900}
901
902U8* KMemory::getRamPtr(U32 address, U32 len, bool write, bool futex) {
903 U32 index = address >> K_PAGE_SHIFT;
904 U32 offset = address & K_PAGE_MASK;
905
906 if (len + offset > K_PAGE_SIZE) {
907 kpanic("KMemory::getRamPtr");
908 }
909 U8* result = data->mmu[index].getPage()->getRamPtr(&data->mmu[index], index, write, true, offset, len);
910 if (result && futex) {
911 data->mmu[index].flags |= PAGE_FUTEX;
912 }
913 return result;
914}
915
916void KMemory::clone(KMemory* from, bool vfork) {
917 // don't allow changes to the from pages while we are cloning

Callers 15

updateVertexPointerFunction · 0.45
marshalTypeFunction · 0.45
getPtrMethod · 0.45
marshalpFunction · 0.45
marshalArrayFunction · 0.45
getPtrMethod · 0.45
getPtrMethod · 0.45
getMethod · 0.45
openDisplayMethod · 0.45
x11_FreeModifierMapFunction · 0.45
x11_XineramaQueryScreensFunction · 0.45
futexMethod · 0.45

Calls 2

kpanicFunction · 0.85
getPageMethod · 0.45

Tested by

no test coverage detected