MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / dev_open

Function dev_open

src/fs/mod.rs:149–153  ·  view source on GitHub ↗

Open device

(path: &str)

Source from the content-addressed store, hash-verified

147
148// Open device
149pub fn dev_open(path: &str) -> Option<usize>
150{
151 let flags = OpenFlag::CREATE as usize | OpenFlag::DIRECTORY as usize;
152 crate::sys::sc::open(path, flags)
153}
154
155
156// Create a new directory

Callers 3

readFunction · 0.85
read_to_bytesFunction · 0.85
reopenFunction · 0.85

Calls 1

openFunction · 0.70

Tested by

no test coverage detected