LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-21-2005, 05:34 PM   #1
fuzzyBuzz
Member
 
Registered: Sep 2005
Posts: 34

Rep: Reputation: 15
interrupt hooking in linux


hello,

does anyone know how interrupt hooking in linux is done?

i am trying to write a module which alters the interrupt descriptor table (idt) and sets the entries to point to my own interrupt handlers.

can anybody help me with this? i don't even know where to start.
what files in the source have code that deals with assignment to the idt?

thanks in advance,
zvi
 
Old 09-21-2005, 06:20 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"what files in the source have code that deals with assignment to the idt?"

I found a structure which describes the idt. I am not sure whether this particular structure allocates the idt or just maps the idt as allocated by another routine.

In file /usr/src/kernel/arch/i386/kernel/traps.c the idt is mapped or allocated by:
struct desc_struct idt_table[256].

----------------------------------------------
Steve Stites
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Interrupt Handler lucky6969b Linux - Software 1 12-01-2005 11:55 AM
<0>Kernel panic: Aiee, killing interrupt handler! In interrupt handler - not syncing mrb Linux - Newbie 2 01-09-2005 09:47 AM
linux-2.6.6 hdc: lost interrupt Andrew Benton LinuxQuestions.org Member Success Stories 7 11-15-2004 09:29 AM
Hooking up Linux to Cable Surfin'Gumby Linux - Networking 10 05-25-2004 07:32 AM
linux software interrupt oyoyoOnLinux Programming 3 12-05-2001 06:23 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration