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

Method write

src/fs/blk.rs:109–118  ·  view source on GitHub ↗

Write

(&self)

Source from the content-addressed store, hash-verified

107
108 // Write
109 pub fn write(&self)
110 {
111 if let Some(ref mut blkdev) = *crate::fs::blkdev::BLKDEV.lock()
112 {
113 if blkdev.write(self.address, &self.buffer).is_err()
114 {
115 serprintln!("[ERR] COULD NOT WRITE BLOCK: {:#x}", self.address);
116 }
117 }
118 }
119}
120
121

Callers 15

deallocMethod · 0.45
add_freergnMethod · 0.45
write_cmd_portMethod · 0.45
write_data_portMethod · 0.45
initMethod · 0.45
sendMethod · 0.45
intrendMethod · 0.45
mask_writeMethod · 0.45
initMethod · 0.45
cur_hideMethod · 0.45
cur_showMethod · 0.45
cur_writeMethod · 0.45

Calls 1

lockMethod · 0.80

Tested by

no test coverage detected