Re: How does user specify PCI board instance for configuration?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 10, 2018 at 09:17:23PM +0000, Grant Edwards wrote:
> If a user needs to provide configuration information specific to a
> particular PCI board, how does one have the user identify the board?

It's a hard thing to do :(

> When my driver's probe() function is called, it appears that
> pdev->slot is null, so that's not useful.

Yes, not all BIOSes support that.

> Should I use pci_name(pdev) as the identifier for the user to specify
> when configuring a particular board?

You can, but how are you "configuring a particular board"?

> Is pci_name(pdev) associated with a phisical slot guaranteed to be
> unchaged after a reboot?  After other PCI cards are added/removed?

It can randomly change every boot, the PCI addressing scheme is not
deterministic, sorry.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux