summaryrefslogtreecommitdiffstats
path: root/rust/kernel
diff options
context:
space:
mode:
authorEliot Courtney <ecourtney@nvidia.com>2026-03-06 16:22:00 +0900
committerAlexandre Courbot <acourbot@nvidia.com>2026-03-10 16:07:33 +0900
commit59f237a0d17fb95f60de15386a6ab968af4bd4d4 (patch)
tree5bcd11dc2e676be77beadf96cd86f6e3f584ed03 /rust/kernel
parentb4281ffb80d341c2c7cf0343784ec77dbd7f9189 (diff)
downloadlinux-59f237a0d17fb95f60de15386a6ab968af4bd4d4.tar.gz
linux-59f237a0d17fb95f60de15386a6ab968af4bd4d4.zip
rust: add EMSGSIZE error code
Add the EMSGSIZE error code, which indicates that a message is too long. Tested-by: Zhi Wang <zhiw@nvidia.com> Acked-by: Miguel Ojeda <ojeda@kernel.org> Reviewed-by: Gary Guo <gary@garyguo.net> Signed-off-by: Eliot Courtney <ecourtney@nvidia.com> Link: https://patch.msgid.link/20260306-cmdq-continuation-v6-3-cc7b629200ee@nvidia.com Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Diffstat (limited to 'rust/kernel')
-rw-r--r--rust/kernel/error.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/kernel/error.rs b/rust/kernel/error.rs
index 258b12afdcba..10fcf1f0404d 100644
--- a/rust/kernel/error.rs
+++ b/rust/kernel/error.rs
@@ -67,6 +67,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!(EMSGSIZE, "Message too long.");
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.");