deriving pcmcia socket number

Dominik Brodowski linux at
Thu May 15 06:21:19 EDT 2008

On Wed, May 14, 2008 at 01:48:22AM -0400, David H. Lynch Jr. wrote:
>     Is there some easy way of deriving the pcmcia socket # from either
> the device name /dev/xxxxx or from
> the pci_dev or pcmcia_device structure within a driver ?

(pcmcia_device *) p_dev->socket->sock . Note that this number may change
between reboots.


More information about the linux-pcmcia mailing list