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

Function alloc_count_up

src/fs/sblk.rs:129–134  ·  view source on GitHub ↗

Increase allocation count by one (1)

()

Source from the content-addressed store, hash-verified

127
128// Increase allocation count by one (1)
129pub fn alloc_count_up()
130{
131 let mut sb = SBlk::read();
132 sb.alloc_count += 1;
133 sb.write();
134}
135
136
137// Decrease allocation count by one (1)

Callers 1

allocMethod · 0.85

Calls 2

readFunction · 0.70
writeMethod · 0.45

Tested by

no test coverage detected