-1

I'm trying to create a C program whose goal is to enable_irq and disable_irq.I have include linux/irq.h like that

#include <linux/irq.h>

And when I compile : gcc myProgram.c -o myExecutable

I have the error : fatal error : linux/irq.h no file or folder find

What package I have to install? I'm on archLinux.

user2429082
  • 485
  • 2
  • 7
  • 17

1 Answers1

0

You cannot disable IRQs from a userspace application. Those functions are only available within the kernel.

  • Even if you are in root? You can't interact with irq? by writing the code in assembler also? – user2429082 Dec 10 '14 at 17:56
  • Even if you're root. Disabling interrupts in a userspace application would cause the machine to stop responding to all input. –  Dec 10 '14 at 20:32
  • You were right, in order to disable some of the IRQ, I updated a new kernel module. – user2429082 Oct 03 '22 at 14:41