Re: [PATCH v2 3/8] rust: dma: add zeroed constructor to `Coherent`
From: Alexandre Courbot
Date: Sat Mar 21 2026 - 02:38:06 EST
On Sat Mar 21, 2026 at 4:45 AM JST, Danilo Krummrich wrote:
<snip>
> @@ -529,6 +528,35 @@ fn alloc_with_attrs(
> })
> }
>
> + /// Allocates a region of type `T` of coherent memory.
> + ///
> + /// # Examples
> + ///
> + /// ```
> + /// # use kernel::device::{Bound, Device};
> + /// use kernel::dma::{attrs::*, Coherent};
nit: aren't we using the kernel import format in examples as well?