Compiling c program with disable_irq and enable_irq error can't find lib linux/irq.h

471 Views Asked by At

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.

1

There are 1 best solutions below

3
On BEST ANSWER

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