aboutsummaryrefslogtreecommitdiffstats
path: root/rust
diff options
authorAlice Ryhl <aliceryhl@google.com>2026-03-06 11:28:46 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-03-31 15:13:56 +0200
commit5326a18e3e640061ca4b65c1b732feaeace61c39 (patch)
tree55daff5472f7310b70b607079588b6ac322a46f0 /rust
parenta8a37957f2bc4e4af250390c57de6c8371cb5edd (diff)
downloadlinux-next-history-5326a18e3e640061ca4b65c1b732feaeace61c39.tar.gz
rust_binder: introduce TransactionInfo
Rust Binder exposes information about transactions that are sent in various ways: printing to the kernel log, tracepoints, files in binderfs, and the upcoming netlink support. Currently all these mechanisms use disparate ways of obtaining the same information, so let's introduce a single Info struct that collects all the required information in a single place, so that all of these different mechanisms can operate in a more uniform way. For now, the new info struct is only used to replace a few things: * The BinderTransactionDataSg struct that is passed as an argument to several methods is removed as the information is moved into the new info struct and passed down that way. * The oneway spam detection fields on Transaction and Allocation can be removed, as the information can be returned to the caller via the mutable info struct instead. But several other uses of the info struct are planned in follow-up patches. Signed-off-by: Alice Ryhl <aliceryhl@google.com> Link: https://patch.msgid.link/20260306-transaction-info-v1-1-fda58fca558b@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust')
-rw-r--r--rust/kernel/uaccess.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/kernel/uaccess.rs b/rust/kernel/uaccess.rs
index f989539a31b43..984c3ec03a7b6 100644
--- a/rust/kernel/uaccess.rs
+++ b/rust/kernel/uaccess.rs
@@ -19,7 +19,7 @@ use core::mem::{size_of, MaybeUninit};
///
/// This is the Rust equivalent to C pointers tagged with `__user`.
#[repr(transparent)]
-#[derive(Copy, Clone)]
+#[derive(Copy, Clone, Zeroable)]
pub struct UserPtr(*mut c_void);
impl UserPtr {