Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LemonOSProject/LemonOS
/ InitializeSharedMemory
Function
InitializeSharedMemory
Kernel/src/sharedmem.cpp:16–19 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
14
unsigned tableSize = 0;
15
16
void InitializeSharedMemory(){
17
table = (shared_mem_t**)kmalloc(DEFAULT_TABLE_SIZE * sizeof(shared_mem_t*));
18
tableSize = DEFAULT_TABLE_SIZE;
19
}
20
21
int64_t NextKey(){
22
int64_t key = 0;
Callers
1
kmain
Function · 0.85
Calls
1
kmalloc
Function · 0.85
Tested by
no test coverage detected