Re: [PATCH v8 06/10] rust: io: use generic read/write accessors for primitive accesses
From: Danilo Krummrich
Date: Tue Mar 10 2026 - 11:19:17 EST
On Mon Mar 9, 2026 at 4:14 PM CET, Alexandre Courbot wrote:
> /// Generic fallible read with runtime bounds check.
> + ///
> + /// # Examples
> + ///
> + /// Read a primitive type from an I/O address:
> + ///
> + /// ```no_run
> + /// use kernel::io::{Io, Mmio};
NIT: Please use kernel import style, here and in various other places (including
other patches).
> @@ -514,6 +563,20 @@ fn write<T, L>(&self, location: L, value: T)
> ///
> /// Caution: this does not perform any synchronization. Race conditions can occur in case of
> /// concurrent access.
Same as in the previous patch.