[Patch] Extended PCMCIA Support
kay.sievers at vrfy.org
Sun Oct 24 18:47:09 PDT 2004
On Sun, 2004-10-24 at 20:56 -0400, Dan Williams wrote:
> On Mon, 25 Oct 2004, Kay Sievers wrote:
> > If you plug/remove in a card into the slot, cardmgr calls the scripts
> > in /etc/pcmcia. If I plug in an old modem, I get this in the
> > environment:
> > $1=start
> > $2=ttyS1
> > MANFID=0107,0002
> > PRODID_1=USRobotics
> > PRODID_2='336 Data Fax Modem'
> > PRODID_3='33600 Data/14400 Fax'
> > PRODID_4=0.1
> Ok, fair enough, that could be done. However, this does nothing for
> coldplug, does it? How would we notice the card when its inserted before
> HAL is running?
> Coldplugging support is about 75% what this patch was supposed to
> fix. And since for coldplugging, we'd still need to parse
> /var/lib/pcmcia/stab or ioctl() the sockets anyway, we might as well use
> the same code for hotplugging and keep it simple (rather than have two
> separate paths for coldplug and hotplug, which is more obtuse). I realize
> that for coldplugging, we could popen() to cardctl, but I seriously
> dislike opening pipes and parsing the output of the process on the other
> side (for an overview of the issues with stuff like this, I'd point you to
I do not fully agree on this blog topic. You can talk to cardmgr through
a domain socket.
Anyway, it already works and if we get kernel support, things will
change and we probably don't need cardmgr at all. So I will shut up
hal mailing list
hal at freedesktop.org
More information about the Hal