Lines Matching refs:SysError
23 error, AsRawDescriptor, Error as SysError, Event, IntoRawDescriptor, Killable,
70 .ok_or(SysError::new(EINVAL))? in set_vm_state()
76 .ok_or(SysError::new(EINVAL))? in set_vm_state()
81 .ok_or(SysError::new(EINVAL))? in set_vm_state()
86 .ok_or(SysError::new(EINVAL))? in set_vm_state()
91 .ok_or(SysError::new(EINVAL))? in set_vm_state()
293 -1 => Err(SysError::last()), in try_wait()
331 _ => return Err(SysError::new(EINVAL)), in handle_io_event()
359 return Err(SysError::new(EPERM)); in handle_memory()
363 Some(end) if end > shm.size() => return Err(SysError::new(EINVAL)), in handle_memory()
364 None => return Err(SysError::new(EOVERFLOW)), in handle_memory()
398 Err(_) => Err(SysError::new(EDEADLK)), in handle_reserve_range()
426 return Err(SysError::new(EINVAL)); in handle_set_irq_routing()
458 Err(_) => Err(SysError::new(EDEADLK)), in handle_set_call_hint()
481 fn map_net_error(s: &str, e: NetError) -> SysError { in handle_get_net_config() argument
563 None => Err(SysError::new(EBADF)), in handle_socket()
588 Err(SysError::new(ENOTTY)) in handle_socket()
591 Entry::Occupied(_) => Err(SysError::new(EEXIST)), in handle_socket()
597 Entry::Vacant(_) => Err(SysError::new(ENOENT)), in handle_socket()
664 Err(SysError::new(EINVAL)) in handle_socket()
680 None => Err(SysError::new(ENODATA)), in handle_socket()
693 _ => Err(SysError::new(ENOENT)), in handle_socket()
729 Err(SysError::new(ENOTTY)) in handle_socket()