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

Function freeall

src/fs/bmapblk.rs:97–107  ·  view source on GitHub ↗

Free all

()

Source from the content-addressed store, hash-verified

95
96// Free all
97pub fn freeall()
98{
99 let sb = SBlk::read();
100 let a = sb.bmap_area();
101 let b = sb.data_area();
102
103 for address in a..b
104 {
105 Blk::new(address).write();
106 }
107}

Callers 1

fmtataFunction · 0.85

Calls 4

bmap_areaMethod · 0.80
data_areaMethod · 0.80
readFunction · 0.70
writeMethod · 0.45

Tested by

no test coverage detected