Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

does Linux block ports and interrupts for user programs use ?

share|improve this question

closed as not a real question by Tom Wijsman, Journeyman Geek, Paul, DragonLord, slhck Jul 19 '12 at 1:58

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

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.

share|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

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