[PATCH v3 5/7] bus: factorize devargs lookup

David Marchand david.marchand at redhat.com
Tue Apr 14 12:43:14 CEST 2026


On Mon, 13 Apr 2026 at 21:18, Thomas Monjalon <thomas at monjalon.net> wrote:
> 07/04/2026 13:52, David Marchand:
> > Each bus reimplements some similar devargs lookup code.
> >
> > The differences are in how some bus (PCI, VMBUS etc...) normalizes the
> > device names. We can't use the .parse existing handler from outside the
> > bus code itself, as the size of the bus specific device location address
> > is unknown.
> > Introduce a bus specific helper to compare two device names and
> > hide this ugly detail.
>
> I agree with introducing a new bus helper.
>
> [...]
> > +             /* The name in the devargs is usually prefixed with <bus>: */
>
> Is it usually prefixed or always prefixed?

"usually", for legacy reasons (like PCI address are understood as is,
or with pci: prefix).


-- 
David Marchand



More information about the dev mailing list