Searched refs:to_write (Results 1 – 1 of 1) sorted by relevance
665 let to_write = min(self.len()?, *addr_len as usize); in write_to_user() localVariable666 if to_write > 0 { in write_to_user()667 let buf = core::slice::from_raw_parts_mut(addr as *mut u8, to_write); in write_to_user()670 to_write, in write_to_user()674 return Ok(to_write); in write_to_user()