Re: Linux Kernel Device Driver

G Jalaja Devi (jalaja@teil.soft.net)
Fri, 19 Feb 1999 12:10:54 -0530 (IST)


Thanks for the enough info.
When a adapter is inserted/removed how is the driver is notified if it
is already loaded?

On Thu, 18 Feb 1999 asethman@mandate-inc.com wrote:

> On Thu, 18 Feb 1999, G Jalaja Devi wrote:
>
> > When LINUX detects a recently plugged in PCI card (hot swappable), Which
> > function of PCMCIA package is invoked by the LINUX O/S to notify the
> > device driver?
> > In other words, In case of hot-swappable cards, how the insertion and
> > removal of pnp cards is notified to the device driver in LINUX.
> >
> > P.S. We use PCI cards.
>
> I believe this is done through the insertion and deletion of kernel
> modules. The cardmgr daemon keeps an eye on the pcmcia sockets and if
> something gets inserted, it checks the cards id, cross-references it to
> the /etc/pcmcia/config file, then once it finds a match it will try to
> insmod the approriate driver, if that fails, it then trys to modprobe
> it(hoping it was just a module dependency problem). Removal is just the
> inverse of this process.
>
> So most all the time the kernel level driver usually doesn't have the
> foggiest clue that it is running off a pcmcia card...nor does it really
> need to, thats the pcmcia card services job.


>
> Aaron
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/