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

Method new

src/fs/dev.rs:51–59  ·  view source on GitHub ↗

New

(i: u8)

Source from the content-addressed store, hash-verified

49
50 // New
51 fn new(i: u8) -> Self
52 {
53 match i
54 {
55 i if i == DevType::Console as u8 => Device::Console(Console::new()),
56 i if i == DevType::Random as u8 => Device::Random(Random::new()),
57 _ => unimplemented!(),
58 }
59 }
60
61
62 // Open

Callers

nothing calls this directly

Calls 2

ConsoleClass · 0.85
RandomClass · 0.85

Tested by

no test coverage detected