Lines Matching +full:write +full:- +full:back
3 // SPDX-License-Identifier: GPL-2.0-or-later
15 io::{self, ErrorKind, Write},
38 /// back-end that is used for example by a device. Compared to the
47 impl Write for BqlRefMut<'_, bindings::CharBackend> {
48 fn flush(&mut self) -> io::Result<()> { in flush()
52 fn write(&mut self, buf: &[u8]) -> io::Result<usize> { in write() method
60 fn write_all(&mut self, buf: &[u8]) -> io::Result<()> { in write_all()
76 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
91 /// Enable the front-end's character device handlers, if there is an
112 ) -> c_int { in enable_handlers()
171 /// Disable the front-end's character device handlers.
197 /// as an implementor of `Write`. Note that it is not valid to drop
199 /// that might cause C code to write to the character device.
200 pub fn borrow_mut(&self) -> impl Write + '_ { in borrow_mut()
206 pub fn send_break(&self, long: bool) -> io::Result<()> { in send_break()
221 /// Write data to a character backend from the front end. This function
222 /// will send data from the front end to the back end. Unlike
223 /// `write`, this function will block if the back end cannot
228 pub fn write(&self, buf: &[u8]) -> io::Result<usize> { in write() method
230 // SAFETY: qemu_chr_fe_write is thread-safe in write()
235 /// Write data to a character backend from the front end. This function
236 /// will send data from the front end to the back end. Unlike
237 /// `write`, this function will block if the back end cannot
242 pub fn write_all(&self, buf: &[u8]) -> io::Result<()> { in write_all()
244 // SAFETY: qemu_chr_fe_write_all is thread-safe in write_all()