Re: [PATCH v2 3/8] rust: dma: add zeroed constructor to `Coherent`

Alexandre Courbot
2026-03-21T06:37:55Z

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?