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

Function ls

src/fs/ata.rs:513–527  ·  view source on GitHub ↗

List

()

Source from the content-addressed store, hash-verified

511
512// List
513pub fn ls() -> Vec<Drive>
514{
515 let mut res = Vec::new();
516 for bus in 0..2
517 {
518 for disk in 0..2
519 {
520 if let Some(drive) = Drive::open(bus, disk)
521 {
522 res.push(drive)
523 }
524 }
525 }
526 res
527}
528
529
530// Read

Callers 1

initFunction · 0.70

Calls 1

openFunction · 0.70

Tested by

no test coverage detected