MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / GetSharedMemory

Function GetSharedMemory

Kernel/src/sharedmem.cpp:36–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 }
35
36 shared_mem_t* GetSharedMemory(int64_t key){
37 if(key < tableSize){
38 return table[key];
39 } else return nullptr;
40 }
41
42 int CanModifySharedMemory(pid_t pid, int64_t key){
43 shared_mem_t* sMem = nullptr;

Callers 4

CanModifySharedMemoryFunction · 0.85
MapSharedMemoryFunction · 0.85
DestroySharedMemoryFunction · 0.85
SysUnmapSharedMemoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected