Lines Matching refs:SystemError

8 use system_error::SystemError;
60 pub fn callback_read(&self, buf: &mut [u8], offset: usize) -> Result<usize, SystemError> { in callback_read() argument
83 pub fn callback_write(&self, buf: &[u8], offset: usize) -> Result<usize, SystemError> { in callback_write() argument
109 ) -> Result<(), SystemError> { in create_file() argument
110 let inode = kobj.inode().ok_or(SystemError::EINVAL)?; in create_file()
120 ) -> Result<(), SystemError> { in add_file_with_mode() argument
134 SystemError::EINVAL in add_file_with_mode()
164 if e == SystemError::EEXIST { in add_file_with_mode()
208 ) -> Result<(), SystemError> { in create_bin_file() argument
209 let inode = kobj.inode().ok_or(SystemError::EINVAL)?; in create_bin_file()
238 ) -> Result<(), SystemError> { in add_bin_file_with_mode() argument
276 if e == SystemError::EEXIST { in add_bin_file_with_mode()
290 fn open(&self, _data: KernCallbackData) -> Result<(), SystemError> { in open() argument
299 ) -> Result<usize, SystemError> { in read() argument
308 ) -> Result<usize, SystemError> { in write() argument
313 fn poll(&self, _data: KernCallbackData) -> Result<PollStatus, SystemError> { in poll() argument
322 fn open(&self, _data: KernCallbackData) -> Result<(), SystemError> { in open() argument
331 ) -> Result<usize, SystemError> { in read() argument
340 ) -> Result<usize, SystemError> { in write() argument
341 return Err(SystemError::EPERM); in write()
345 fn poll(&self, _data: KernCallbackData) -> Result<PollStatus, SystemError> { in poll() argument
354 fn open(&self, _data: KernCallbackData) -> Result<(), SystemError> { in open() argument
363 ) -> Result<usize, SystemError> { in read() argument
364 return Err(SystemError::EPERM); in read()
372 ) -> Result<usize, SystemError> { in write() argument
377 fn poll(&self, _data: KernCallbackData) -> Result<PollStatus, SystemError> { in poll() argument
386 fn open(&self, _data: KernCallbackData) -> Result<(), SystemError> { in open() argument
395 ) -> Result<usize, SystemError> { in read() argument
396 return Err(SystemError::EPERM); in read()
404 ) -> Result<usize, SystemError> { in write() argument
405 return Err(SystemError::EPERM); in write()
409 fn poll(&self, _data: KernCallbackData) -> Result<PollStatus, SystemError> { in poll() argument
414 pub fn sysfs_emit_str(buf: &mut [u8], s: &str) -> Result<usize, SystemError> { in sysfs_emit_str() argument