You cannot use IRQs or DMA directly from a user-mode process. You need to write a kernel driver; see [Developer Guide: SMTP] .:: telegra.ph ::. The Linux Kernel Hacker's Guide for details and the kernel source code for examples. .:: www.arc.agric.za ::. .:: doc.adminforge.de ::. .:: telegra.ph ::. [NPM Package: Malware] .:: www.driedsquidathome.com ::.
You can disable interrupts from within a user-mode program, though it can
be dangerous (even kernel drivers do it for as short a time as possible).
After calling .:: www.just.edu.jo ::. iopl(3), you can disable interrupts simply by calling
asm("cli");, and re-enable them with asm("sti");.