Lines Matching refs:SystemError
3 use crate::{arch::asm::cmpxchg::try_cmpxchg_q, syscall::SystemError};
114 return Err(SystemError::ETIMEDOUT.to_posix_errno()); in cmpxchg_loop()
123 return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP.to_posix_errno()); in cmpxchg_loop()
144 pub fn inc_not_zero(&mut self) -> Result<i32, SystemError> { in inc_not_zero() argument
151 return Err(SystemError::EPERM); in inc_not_zero()
154 let mut retval = Err(SystemError::EPERM); in inc_not_zero()
172 pub fn inc_not_dead(&mut self) -> Result<i32, SystemError> { in inc_not_dead() argument
178 return Err(SystemError::EPERM); in inc_not_dead()
182 let mut retval = Err(SystemError::EPERM); in inc_not_dead()
202 pub fn dec(&mut self) -> Result<i32, SystemError> { in dec() argument
209 let retval: Result<i32, SystemError>; in dec()
216 retval = Err(SystemError::EPERM); in dec()
234 pub fn dec_return(&mut self) -> Result<i32, SystemError> { in dec_return() argument
239 return Err(SystemError::EPERM); in dec_return()
243 != SystemError::EOPNOTSUPP_OR_ENOTSUP.to_posix_errno() in dec_return()
245 return Err(SystemError::EFAULT); in dec_return()
262 pub fn dec_not_zero(&mut self) -> Result<i32, SystemError> { in dec_not_zero() argument
268 return Err(SystemError::EPERM); in dec_not_zero()
272 let retval: Result<i32, SystemError>; in dec_not_zero()
278 retval = Err(SystemError::EPERM); in dec_not_zero()
293 pub fn dec_or_lock_not_zero(&mut self) -> Result<i32, SystemError> { in dec_or_lock_not_zero() argument
301 let retval: Result<i32, SystemError>; in dec_or_lock_not_zero()
307 retval = Err(SystemError::EPERM); in dec_or_lock_not_zero()