pub struct KTraceReservation<'a> { /* private fields */ }Expand description
KTraceReservation encapsulates a pending write to the buffer.
Implementations§
Source§impl<'a> KTraceReservation<'a>
impl<'a> KTraceReservation<'a>
Sourcepub fn write_word(&mut self, word: u64) -> Result<(), Status>
pub fn write_word(&mut self, word: u64) -> Result<(), Status>
Writes a single 64-bit word into the reservation.
Sourcepub fn write_bytes(&mut self, bytes: &[u8]) -> Result<(), Status>
pub fn write_bytes(&mut self, bytes: &[u8]) -> Result<(), Status>
Writes a byte slice into the reservation, padding to an 8-byte boundary.