does Linux block ports and interrupts for user programs use ?

link|improve this question

44% accept rate
feedback

1 Answer

up vote 1 down vote accepted

The only interrupt a non-kernel program should be using is int 0x80, which is the interrupt to request one of the system calls listed in /usr/include/sys/syscall.h. If you want to directly interact with hardware interrupts, this should be done inside a kernel module. A good introduction to Assembly on a Linux system. This thread should also be useful for you.

link|improve this answer
As noted in the LinuxQuestions thread I linked to, a program like dosbox.com or dosemu.org will do the same interrupt emulation that windows provides for assembly programs (even with windows you are not really using interrupts, but getting pseudo-interrupts though an emulator). – Justin Smith Feb 21 '10 at 15:41
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.