Re: Trying to free already-free IRQ

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

"Belisko Marek" <marek.belisko@xxxxxxxxx> 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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux