How to enable HPET MSI Edge Interrupts from user space in RHEL 7.8

Posted on

HPET Dmesg LogInterruptsHi,
I am using Intel Processor core i7- gen 870 with RHEL 7.8 OS. I am developing a application which requires to generate interrupts periodically. HPET providing 5 timers as MSI Edge interrupts (attached files for cat /proc/interrupts & dmesg | grep -i hpet outputs).

Can anyone please provide the sample user space code to enable HPET MSI Edge interrupts to generate interrupts in user space.

Thanks & regards