Hi,
"Belisko Marek" <[EMAIL PROTECTED]> writes:
> Hi,
>
> need some help with freeing interupts. In my code in init I call :
> ret = request_irq( interruptNumResp, FRTransHnd_run, IRQF_PERCPU,
> "response", pHandler);
>
> in exit function I call:
> free_irq(interruptNumResp, NULL);
You have to pass it back the cookie you used in request_irq().
request_irq(..., my_cookie);
free_irq(..., my_cookie);
In your case it seems to be pHandler.
> but after rmmod that I got:
>
> Trying to free already-free IRQ 59 message and than I can't insert my
> module again.
Yeah, the irq is looked up by number, and then the cookies are compared.
See the code in kernel/irq/manage.c::free_irq()
Hannes
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ