]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: task: implement == operator for Task
authorAlice Ryhl <aliceryhl@google.com>
Tue, 24 Mar 2026 20:02:36 +0000 (20:02 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Apr 2026 10:18:21 +0000 (12:18 +0200)
commit12c688086f091c24e62504f5a26c009a6a8dd8bc
treefca0fb3af5b0d6afc0c7ea0f2808c4dfe6645c4c
parent18e9fafb2672cb976edfe51e899484c2ea892170
rust: task: implement == operator for Task

It's useful to compare if two tasks are the same task or not. Rust
Binder wants this to check if a certain task is equal to the group
leader of current.

Reviewed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Link: https://patch.msgid.link/20260324-close-fd-check-current-v3-2-b94274bedac7@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
rust/kernel/task.rs