Re: [PATCH v3 7/9] rust: vfio: add PCI variant driver abstractions
From: Maurice
Date: Sat Dec 05 2026 - 18:02:01 EST
On Thu Nov 26, 2026 at 12:51 AM CET, Danilo Krummrich wrote:
> On Thu Nov 19, 2026 at 10:50 PM CET, Simon Song wrote:
>
>> +
>> +/// A VFIO PCI file position, encoding a region index and an offset within that region.
>> +pub struct Position<'a> {
>> + raw: &'a mut i64,
>
> Shouldn't this be just file::Offset?
>
> I don't remember if file::Offset is still an alias of a primitive or a new type.
>
> I remember I sent a patch to convert it to a new type in the past, but I don't
> remember if I ever followed up on it and if it was merged.
>
> If not, I should probably resend, or please also feel free to pick it up if you
> want. In any case, this can happen subsequently and doesn't need to be part of
> this series.
It was not merged, file::Offset is still an alias of loff_t in linux-next.
Danilo, Simon: if neither of you plans to resend it, I'd be happy to pick up
your "rust: fs: add new type file::Offset" patch from last year [1].
[1] https://lore.kernel.org/rust-for-linux/20251022143158.64475-2-dakr@xxxxxxxxxx/
Best,
Maurice