PCMCIA detection in kernel 2.6 series

Russell King rmk+pcmcia at arm.linux.org.uk
Wed May 19 03:28:22 EDT 2004


On Tue, May 18, 2004 at 02:32:19PM -0700, Joshua Kwan wrote:
> I'm one of the developers on the installer for the new release of Debian
> GNU/Linux. We recently introduced 2.6 support but noticed that this
> included some unwanted caveats with regards to the way we detected the
> existence of a PCMCIA bridge on the system. We were checking for the
> existence of /proc/bus/pccard/drivers; it seems that this exists only in
> the presence of a PCMCIA bridge in 2.4, but in 2.6 it is created
> unconditonally. Is there a definitive way for us to figure out whether a
> bridge does exist and has been configured by the PCMCIA subsystem or not?

Just check whether the /sys/class/pcmcia_socket directory is empty or
not.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 PCMCIA      - http://pcmcia.arm.linux.org.uk/
                 2.6 Serial core



More information about the linux-pcmcia mailing list