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

Method blkidx

src/fs/bmapblk.rs:40–46  ·  view source on GitHub ↗

Block index

(address: u32)

Source from the content-addressed store, hash-verified

38
39 // Block index
40 fn blkidx(address: u32) -> u32
41 {
42 let sblk = SBlk::read();
43 let size = sblk.blksize();
44 let i = address - sblk.data_area();
45 sblk.bmap_area() + (i / size / 8)
46 }
47
48 // Buffer index
49 fn buffidx(address: u32) -> usize

Callers

nothing calls this directly

Calls 4

data_areaMethod · 0.80
bmap_areaMethod · 0.80
readFunction · 0.70
blksizeMethod · 0.45

Tested by

no test coverage detected