]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rust: task: make Pid type alias public
authorAlice Ryhl <aliceryhl@google.com>
Thu, 30 Jan 2025 11:21:38 +0000 (11:21 +0000)
committerMiguel Ojeda <ojeda@kernel.org>
Thu, 6 Mar 2025 19:59:45 +0000 (20:59 +0100)
commit6ad64bf91728502fe8a4d1419c0a3e4fd323f503
tree5a6d5aa896fa4da6a500a16e6a8b789513f5617e
parent41b6a8122d888299e3e437dae3a36431e6dfd5c9
rust: task: make Pid type alias public

The Pid type alias represents the integer type used for pids in the
kernel. It's the Rust equivalent to pid_t, and there are various methods
on Task that use Pid as the return type.

Binder needs to use Pid as the type for function arguments and struct
fields in many places. Thus, make the type public so that Binder can
access it.

Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Fiona Behrens <me@kloenk.dev>
Link: https://lore.kernel.org/r/20250130-task-pid-pub-v1-1-508808bcfcdc@google.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/task.rs