Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between trap handler , interrupt dispatch routine and interrupt service routine (ISR)?

I am confused between above mentioned concepts while reading Windows internals.

like image 376
rpk Avatar asked Jan 19 '26 05:01

rpk


1 Answers

All three terms - trap handler , interrupt dispatch routine and interrupt service routine (ISR) - relate to Windows driver level programming (as opposed to user-mode Windows applications).

"Traps" are programmer-initiated interrupts (vs. automatically generated "exceptions").

An "Interrupt service routine" (ISR) is a procedure written to handle an "interrupt". Although there are different kinds of interrupts (hardware interrupts, programmatic traps, CPU exceptions, etc, etc), the format of an ISR is similar in all cases. A "trap handler" is an ISR.

Interrupts should always be serviced as quickly as possible.

Finally "Dispatch routines" are the main entry points for performing hardware I/O.

like image 105
paulsm4 Avatar answered Jan 21 '26 07:01

paulsm4



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!