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

Method Open

Kernel/src/fs/fsnodestubs.cpp:18–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18fs_fd_t* FsNode::Open(size_t flags){
19 fs_fd_t* fDesc = (fs_fd_t*)kmalloc(sizeof(fs_fd_t));
20
21 fDesc->pos = 0;
22 fDesc->mode = flags;
23 fDesc->node = this;
24
25 handleCount++;
26
27 return fDesc;
28}
29
30void FsNode::Close(){
31 handleCount--;

Callers

nothing calls this directly

Calls 1

kmallocFunction · 0.85

Tested by

no test coverage detected