request_irq Vs request_threaded_irq

1,044 views
Skip to first unread message

Ranbir n

unread,
Mar 18, 2016, 3:26:24 AM3/18/16
to inside...@googlegroups.com
Hi All,

What is difference between the request_irq & request_threaded_irq  apart from arguments. 



Regards,
Ranbir 

Ameet Gandhare

unread,
Mar 18, 2016, 4:54:25 AM3/18/16
to inside...@googlegroups.com
HI Ranbir,

As of Linux kernel 4.5.x, the function request_irq is a wrapper
calling request_threaded_irq.
The request_threaded_irq allocates the interrupt resources and IRQ
handling. From this point onwards,
the interrupt handler may get invoked.
Regards,
Ameet
> --
> You received this message because you are subscribed to the Google Groups
> "SysPlay's Inside Linux" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to inside_linux...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Rajagopal P

unread,
Mar 18, 2016, 6:10:57 AM3/18/16
to inside...@googlegroups.com

This was one of the interview question in irq, that i faced recently (at one of the leading mobile chipmaker in hyd), so providing some more links :)

https://lwn.net/Articles/302043/

-Regards,Rajgopal

real time

unread,
Mar 20, 2016, 2:46:46 PM3/20/16
to inside...@googlegroups.com
Hi Rajgopal , 

Like work is divided between top and bottom half , using request_threaded_irq , you can divide the top half in two part . first part will just acknowledge the interrupt and second part is a thread will do the rest to finish the interrupt handling . this way system will be able to handle interrupt faster to reduce the interrupt processing latency and it will also avoid the locking between the ISR and bottom half . read this .

come back for any question.

Regards,

Reply all
Reply to author
Forward
0 new messages