projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a002488
)
rust: make ETIMEDOUT error available
author
Alexandre Courbot
<acourbot@nvidia.com>
Thu, 19 Jun 2025 13:23:48 +0000
(22:23 +0900)
committer
Danilo Krummrich
<dakr@kernel.org>
Mon, 23 Jun 2025 16:12:30 +0000
(18:12 +0200)
We will use this error in the nova-core driver.
Reviewed-by: Benno Lossin <lossin@kernel.org>
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Link:
https://lore.kernel.org/r/20250619-nova-frts-v6-4-ecf41ef99252@nvidia.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/error.rs
patch
|
blob
|
blame
|
history
diff --git
a/rust/kernel/error.rs
b/rust/kernel/error.rs
index 3dee3139fcd4379b94748c0ba1965f4e1865b633..083c7b068cf4e185100de96e520c54437898ee72 100644
(file)
--- a/
rust/kernel/error.rs
+++ b/
rust/kernel/error.rs
@@
-65,6
+65,7
@@
pub mod code {
declare_err!(EDOM, "Math argument out of domain of func.");
declare_err!(ERANGE, "Math result not representable.");
declare_err!(EOVERFLOW, "Value too large for defined data type.");
+ declare_err!(ETIMEDOUT, "Connection timed out.");
declare_err!(ERESTARTSYS, "Restart the system call.");
declare_err!(ERESTARTNOINTR, "System call was interrupted by a signal and will be restarted.");
declare_err!(ERESTARTNOHAND, "Restart if no handler.");