Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LibertyOS-Development/kernel
/ buffidx
Method
buffidx
src/fs/bmapblk.rs:49–54 ·
view source on GitHub ↗
Buffer index
(address: u32)
Source
from the content-addressed store, hash-verified
47
48
// Buffer index
49
fn buffidx(address: u32) -> usize
50
{
51
let sblk = SBlk::read();
52
let i = (address - sblk.data_area()) as usize;
53
i % sblk.blksize() as usize
54
}
55
56
// Free
57
pub fn free(address: u32)
Callers
nothing calls this directly
Calls
3
data_area
Method · 0.80
read
Function · 0.70
blksize
Method · 0.45
Tested by
no test coverage detected