Subject: Re: Kernel Detach Functions - help
To: Bruce Martin <brucem@cat.co.za>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: tech-kern
Date: 04/05/2001 22:01:48
On Thu, Apr 05, 2001 at 11:21:13AM +0200, Bruce Martin wrote:
> I am looking for some help on kernel detach function, for example, the
> detach() function in the PCMCIA wdc code, that allows a device to be
> detached from the kernel, and then reattached without reboot (i.e. hotswap).
> I have looked through the code, and need to know how this code is called -
> is it entered through a hardware interrupt when a device is removed from a
> bus? Or is it entered via software, ioctls() etc?

For PCMCIA it's called after a hardware interrupt. pcmcia controllers
have way to notice when a card is inserted or removed. I think most of them
generate an interrupt; although polling is also possible.

You may also want to look at the USB code :)

--
Manuel Bouyer <bouyer@antioche.eu.org>
--