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

Method alloc_next

src/fs/blk.rs:142–148  ·  view source on GitHub ↗

Allocate next

(&mut self)

Source from the content-addressed store, hash-verified

140
141 // Allocate next
142 pub fn alloc_next(&mut self) -> Option<Self>
143 {
144 let newblk = LinkBlk::alloc()?;
145 self.set_next_address(newblk.address());
146 self.write();
147 Some(newblk)
148 }
149
150
151 // Data

Callers 1

new_itemMethod · 0.80

Calls 3

set_next_addressMethod · 0.80
addressMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected