Next-in-Thread Next Message

None See "Anatomy of a Card Services Client Driver" in Programmer's Guide 

Forum: PCMCIA driver development
Re: Question when is the *_attach invoked (lei sun)
Date: 2000, Aug 01
From: David Hinds <dhinds@pcmcia.sourceforge.org>

The *_attach() function will be invoked when the ds module is told
that your driver is "bound" to an appropriate card.  When a card is
detected, cardmgr looks it up in /etc/pcmcia/config to see what
drivers it uses, loads those drivers, then tells ds to bind the card
to those drivers.

If you insmod a driver by hand, *_attach won't be called.

The dev_info string is what gets matched against the driver name in
the config file.  Other than matching what is in the config file, the
name is arbitrary, though I use a convention of *_cs for 16-bit
drivers and *_cb for cardbus drivers.

-- Dave

Next-in-Thread Next Message

Add Message to: "See "Anatomy of a Card Services Client Driver" in Programmer's Guide"

Members Subscribe Admin Mode Show Frames Help for HyperNews at pcmcia-cs.sourceforge.net 1.10