From fb05a54492f7751a649bae9c4d9901819f0ea65b Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Thu, 30 Jan 2025 11:21:38 +0000 Subject: [PATCH] FROMLIST: 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. Reviewed-by: Fiona Behrens Signed-off-by: Alice Ryhl Bug: 388786466 Link: https://lore.kernel.org/r/20250130-task-pid-pub-v1-1-508808bcfcdc@google.com Change-Id: Id9d721ef99d5612e2fe55f03fe4562761200479e Signed-off-by: Alice Ryhl --- rust/kernel/task.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/kernel/task.rs b/rust/kernel/task.rs index 210f59e219a1..0f3add12f499 100644 --- a/rust/kernel/task.rs +++ b/rust/kernel/task.rs @@ -144,7 +144,7 @@ impl Deref for CurrentTask { } /// The type of process identifiers (PIDs). -type Pid = bindings::pid_t; +pub type Pid = bindings::pid_t; /// The type of user identifiers (UIDs). #[derive(Copy, Clone)]