r/linux_programming • u/Valueduser • May 05 '15
question Hardware Interrupts from the user space?
Hi all, I'm currently working on a project and am a bit out of my depth when it comes to linux programming. I am working on an Arm cortex A9 based system that incorporates custom components designed in VHDL. The system is implemented in an Altera Cyclone V FPGA SOC.
I have a hardware timer module that is generating an interrupt every second that is routed to the Generic Interrupt Controller in the Arm. I don't have much experience with OS programming and am trying to port over some code that I wrote for a bare metal freescale project. Is it possible to service the Interrupt from within a user space application?
View all comments
Show parent comment
1
u/Valueduser May 06 '15
I don't get what UIO is supposed to be doing. I've been reading about it and from what I understand there is a blocking read() function that wits for interrupts. Can I use request_irq() from a user space program? Essentially what I want to happen is that every with every interrupt I want an array index to be incremented. If I can't figure it out I'll probably create a thread and use usleep to generate the same functionality, at this point it's kind of the principle of getting it to work.