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

Method TempVolume

Kernel/src/fs/tmp.cpp:4–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2
3namespace fs::Temp{
4 TempVolume::TempVolume(const char* name){
5 strcpy(mountPointDirent.name, name);
6 mountPointDirent.node =
7 }
8
9 void TempVolume::ReallocateNode(TempNode* node){
10 if(node->size > node->bufferSize){
11 if(!node->buffer){
12 node->buffer = (uint8_t*)kmalloc(node->size);
13 }
14 }
15 }
16
17 TempNode::TempNode(TempVolume* v){
18 vol = v;
19 }
20}

Callers

nothing calls this directly

Calls 2

strcpyFunction · 0.85
kmallocFunction · 0.85

Tested by

no test coverage detected