Re: [PATCH v3 2/5] rust: sync: add WaitQueue infrastructure

From: Gary Guo

Date: Wed Nov 18 2026 - 07:50:38 EST


On Wed Nov 18, 2026 at 12:22 PM GMT, Danilo Krummrich wrote:
> On Tue Nov 17, 2026 at 12:59 PM CET, Gary Guo wrote:
>> The first paragraph is rendered as rustdoc short item description so please
>> have something more descriptive and leave the C equivalence to other pragraphs.
>
> diff --git a/rust/kernel/sync/wait.rs b/rust/kernel/sync/wait.rs
> --- a/rust/kernel/sync/wait.rs
> +++ b/rust/kernel/sync/wait.rs
> @@ -35,6 +35,8 @@
> pub use new_waitqueue;
>
> +/// A wait queue for sleeping until a condition becomes true.
> +///
> /// Exposes the kernel's [`struct wait_queue_head`] as a Rust wait queue.
> ///
> /// A `WaitQueue` allows a thread to sleep until a caller-supplied condition becomes true,

Reviewed-by: Gary Guo <gary@xxxxxxxxxxx>