Re: [PATCH v2 1/1] rust: pci: add domain_nr() accessor
From: Gary Guo
Date: Thu Nov 12 2026 - 04:53:39 EST
On Wed Nov 11, 2026 at 8:05 PM GMT, John Hubbard wrote:
> The nova-core driver has to send the GPU's PCI location to the GPU's
> firmware as one word that holds the domain, the bus and the device
> number.
>
> The PCI abstraction has dev_id(), which packs the bus, the device and
> the function into one value. It has no accessor that reports the domain.
>
> Add an accessor for the domain number.
>
> Signed-off-by: John Hubbard <jhubbard@xxxxxxxxxx>
Reviewed-by: Gary Guo <gary@xxxxxxxxxxx>
> ---
> rust/helpers/pci.c | 5 +++++
> rust/kernel/pci.rs | 16 ++++++++++++++++
> 2 files changed, 21 insertions(+)