We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d58e9d3 + d9c2ac9 commit e9b9c0eCopy full SHA for e9b9c0e
rust/kernel/error.rs
@@ -34,6 +34,21 @@ impl Error {
34
/// Try again.
35
pub const EAGAIN: Self = Error(-(bindings::EAGAIN as i32));
36
37
+ /// Device or resource busy.
38
+ pub const EBUSY: Self = Error(-(bindings::EBUSY as i32));
39
+
40
+ /// Restart the system call.
41
+ pub const ERESTARTSYS: Self = Error(-(bindings::ERESTARTSYS as i32));
42
43
+ /// Operation not permitted.
44
+ pub const EPERM: Self = Error(-(bindings::EPERM as i32));
45
46
+ /// No such process.
47
+ pub const ESRCH: Self = Error(-(bindings::ESRCH as i32));
48
49
+ /// No such file or directory.
50
+ pub const ENOENT: Self = Error(-(bindings::ENOENT as i32));
51
52
/// Creates an [`Error`] from a kernel error code.
53
pub fn from_kernel_errno(errno: c_types::c_int) -> Error {
54
Error(errno)
0 commit comments