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

Method canWrite

source/kernel/kmemory.cpp:295–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295bool KMemory::canWrite(U32 address, U32 len) {
296 bool result = true;
297
298 iteratePages(address, len, [this, &result](U32 page) {
299 if (getPageFlags(page) & PAGE_WRITE) {
300 return true;
301 }
302 result = false;
303 return false;
304 });
305 return result;
306}
307
308bool KMemory::canRead(U32 address, U32 len) {
309 bool result = true;

Callers 15

readMethod · 0.45
internalCleanupMethod · 0.45
get_robust_listMethod · 0.45
signalstackMethod · 0.45
recvfromMethod · 0.45
internalAccessFunction · 0.45
readMethod · 0.45
writeMethod · 0.45
symlinkInDirectoryFunction · 0.45
ftruncate64Method · 0.45
writevMethod · 0.45
pread64Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected