Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
97
pub 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
fmtata
Function · 0.85
Calls
4
bmap_area
Method · 0.80
data_area
Method · 0.80
read
Function · 0.70
write
Method · 0.45
Tested by
no test coverage detected