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

Method Open

Kernel/src/net/socket.cpp:101–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101fs_fd_t* Socket::Open(size_t flags){
102 fs_fd_t* fDesc = (fs_fd_t*)kmalloc(sizeof(fs_fd_t));
103
104 fDesc->pos = 0;
105 fDesc->mode = flags;
106 fDesc->node = this;
107
108 return fDesc;
109}
110
111void Socket::Close(){
112 if(bound){

Callers

nothing calls this directly

Calls 1

kmallocFunction · 0.85

Tested by

no test coverage detected