]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust_binder: introduce TransactionInfo
authorAlice Ryhl <aliceryhl@google.com>
Fri, 6 Mar 2026 11:28:46 +0000 (11:28 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Mar 2026 13:13:56 +0000 (15:13 +0200)
commit5326a18e3e640061ca4b65c1b732feaeace61c39
tree55daff5472f7310b70b607079588b6ac322a46f0
parenta8a37957f2bc4e4af250390c57de6c8371cb5edd
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>
drivers/android/binder/allocation.rs
drivers/android/binder/error.rs
drivers/android/binder/process.rs
drivers/android/binder/thread.rs
drivers/android/binder/transaction.rs
rust/kernel/uaccess.rs