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 |