Lines Matching refs:Result
60 pub fn callback_read(&self, buf: &mut [u8], offset: usize) -> Result<usize, SystemError> { in callback_read()
83 pub fn callback_write(&self, buf: &[u8], offset: usize) -> Result<usize, SystemError> { in callback_write()
109 ) -> Result<(), SystemError> { in create_file() argument
120 ) -> Result<(), SystemError> { in add_file_with_mode() argument
208 ) -> Result<(), SystemError> { in create_bin_file() argument
238 ) -> Result<(), SystemError> { in add_bin_file_with_mode() argument
290 fn open(&self, _data: KernCallbackData) -> Result<(), SystemError> { in open() argument
299 ) -> Result<usize, SystemError> { in read()
308 ) -> Result<usize, SystemError> { in write()
313 fn poll(&self, _data: KernCallbackData) -> Result<PollStatus, SystemError> { in poll()
322 fn open(&self, _data: KernCallbackData) -> Result<(), SystemError> { in open() argument
331 ) -> Result<usize, SystemError> { in read()
340 ) -> Result<usize, SystemError> { in write()
345 fn poll(&self, _data: KernCallbackData) -> Result<PollStatus, SystemError> { in poll()
354 fn open(&self, _data: KernCallbackData) -> Result<(), SystemError> { in open() argument
363 ) -> Result<usize, SystemError> { in read()
372 ) -> Result<usize, SystemError> { in write()
377 fn poll(&self, _data: KernCallbackData) -> Result<PollStatus, SystemError> { in poll()
386 fn open(&self, _data: KernCallbackData) -> Result<(), SystemError> { in open() argument
395 ) -> Result<usize, SystemError> { in read()
404 ) -> Result<usize, SystemError> { in write()
409 fn poll(&self, _data: KernCallbackData) -> Result<PollStatus, SystemError> { in poll()
414 pub fn sysfs_emit_str(buf: &mut [u8], s: &str) -> Result<usize, SystemError> { in sysfs_emit_str()