On Sat Feb 14, 2026 at 1:18 AM CET, Gary Guo wrote:
> On 2026-02-14 00:09, Danilo Krummrich wrote:
>> On Sat Feb 14, 2026 at 12:50 AM CET, gary wrote:
>>> If you prefer, I can send out a version with just improved projections
>>> without
>>> all the generic I/O improvement stuff.
>>
>> Yes, that would be great. Otherwise, we can also use as_slice_mut() to
>> avoid
>> having to touch field_write() directly, but I much prefer the former.
>>
>> In any case, I'd like to keep the PteArray type. It can at least
>> provide a
>> function to calculate the value from the DMA address for a given index.
>>
>> (Would be nice if we'd have something like a dma::Projection<T> type,
>> such that we
>> could have PteArray::init(self: dma::Projection<Self>).)
>
> I think once I/O projection work is done, this would just be
>
> impl PteArray {
> fn init<Base>(self: io::View<'_, Base, Self>>, dma: DmaAddress)
> }
>
> and the generic I/O projection is used inside.
I guess I should have written "Would be nice if we'd have something like a
dma::Projection<T> type *already* [...]", i.e. I meant to say that this way we
could remain close to what the final implementation will look like eventually.
:)