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

Method map

source/kernel/devs/devzero.cpp:43–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43U32 DevZero::map(KThread* thread, U32 address, U32 len, S32 prot, S32 flags, U64 off) {
44 // :TODO: not correct, writing to this should just be ignored
45 if (prot & K_PROT_WRITE) {
46 kwarn("DevZero::map with PROT_WRITE not implemented, this will probably cause a problem");
47 }
48 return thread->memory->mmap(thread, address, len, prot, flags, -1, off);
49}
50
51bool DevZero::canMap() {
52 return true;

Callers

nothing calls this directly

Calls 2

kwarnFunction · 0.85
mmapMethod · 0.80

Tested by

no test coverage detected