interrupt hooking in kernel 2.6

2005-07-14 Thread Zvi Rackover
hello all,

i wish to write a module for i386 that can hook interrupts. the module
loads its own interrupt descriptor table instead of the default
system's table. after executing my own handler(s), the old appropriate
handler will be called.
i could not find any documentation or sample code explaining how this
is done in 2.6. There are very few outdated examples on the web which
apparently are not suitable.
can anyone help me out?

yours,
zvi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


looking for GDT, LDT & IDT management code

2005-07-06 Thread Zvi Rackover

hello all,

where can i find the code that initializes and the code that manages the 
following:

a) Global Descriptor Table (GDT)
b) Local Descriptor Table (LDT)
c) Interrupt Descriptor Table (IDT)
?

if anyone know of any good documentation/tutorial i would appriciate if 
you mentioned it/them.


yours,
Zvi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: Module that loads new Interrupt Descriptor Table

2005-04-20 Thread Zvi Rackover
On 4/20/05, Arjan van de Ven <[EMAIL PROTECTED]> wrote:
> On Wed, 2005-04-20 at 11:58 +0300, Zvi Rackover wrote:
> > Hello all,
> >
> >   I would like to write a program that monitors various system
> > parameters in real time. One of these is counting the number of
> > interrupts. I would like to implement my own interrupt handler so that
> > each handler counts the number of interrupt of its respective type.
> 
> ehm
> the kernel already keeps this kind of data, see /proc/interrupts
> 
> why would you want to collect it *again* ?
> (or do you want to generally hook interrupts like some other people want
> to hook syscalls?)
> 
> 
You have a good point point - I should have given a better decription
to my problem.
This is an educational project I'm working on and I need to actually
see the contents of the Interrupt Descritor Table so I could load it
into user space and have it displayed in a nice GUI.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Module that loads new Interrupt Descriptor Table

2005-04-20 Thread Zvi Rackover
Hello all,
 
  I would like to write a program that monitors various system
parameters in real time. One of these is counting the number of
interrupts. I would like to implement my own interrupt handler so that
each handler counts the number of interrupt of its respective type.
 I have read various guides and tutorials but none of them have
discussed this matter.
 The module is intended to be installed on an Intel architecture machine.
 Any tips or source code would be graciously accepted.
 
 Regards,
  Zvi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/