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

Function CreateSharedMemory

LibLemon/src/lemon/sharedmem.cpp:7–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5
6namespace Lemon {
7 int64_t CreateSharedMemory(uint64_t size, uint64_t flags){
8 int64_t key;
9 long ret = syscall(SYS_CREATE_SHARED_MEMORY, &key, size, flags, /*recipient*/0);
10 if(ret < 0){
11 return ret;
12 }
13 return key;
14 }
15
16 volatile void* MapSharedMemory(int64_t key){
17 volatile void* ptr;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected