Search code examples
clinuxirq

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


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.


Solution

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