MCPcopy Create free account
hub / github.com/Bananymous/banan-os / create

Method create

kernel/kernel/Memory/SharedMemoryObject.cpp:77–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 return BAN::Error::from_errno(EINVAL);
76
77 const int flags =
78 (shmflg & S_IRUSR ? O_RDONLY : 0) |
79 (shmflg & S_IWUSR ? O_WRONLY : 0);
80 if (!object->can_current_process_access(flags))
81 return BAN::Error::from_errno(EACCES);
82
83 return it->value;
84 }
85

Callers

nothing calls this directly

Calls 1

initializeMethod · 0.45

Tested by

no test coverage detected