removing modules afetr ejecting a card?

Dominik Brodowski linux at dominikbrodowski.net
Mon Jul 25 13:05:50 EDT 2005


Hi,

On Mon, Jul 25, 2005 at 09:30:48AM +0200, Steven Scholz wrote:
> >Removing modules is considered to be a bad practice, in general. Especially
> >PCMCIA modules still need some work until I consider it safe to remove 
> >them.
> 
> Why is that? On an embedded system with only a few megs of RAM it would be 
> a completly waste on resources if I had IDE, serial, orinoco and whatever 
> driver loaded all the time although I have only one CF socket, thus can 
> only use one at a time!

Just one reference from 2003: http://lwn.net/Articles/31474/  -- there's
much more on this topic at LWN, for example.

> How?
> Is there a better way then
> 	basename `readlink /sys/bus/pcmcia/devices/0.0/driver/module`
> ?

I don't know of any better way than the one you suggested -- easiest would
be to build pcmcia.ko into the kernel, though, and just use modprobe -r. At
your own risk, though...


	Dominik



More information about the linux-pcmcia mailing list