lkml.org 
[lkml]   [1999]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Linux Kernel Device Driver
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/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.029 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site