Signal catch code; can it make kernel commands
- From: "toes" <mcraven.2@xxxxxxxxxx>
- Date: 15 Oct 2006 06:17:31 -0700
Correct me where I'm wrong.
When a signal is sent to the computer the CPU switches to kernel mode.
The signal # is then looked up in a table that holds the signal #'s and
their associated catch code address. Is there a name for this table?
Is there a table like this for every running process on a UNIX system?
Control is sent to the catch code. The CPU stays in kernel mode during
the execution of this code so kernel commands that are placed in the
catch code by the programs author could be executed. What types of
kernel commands (if any) could be executed in this code? The signal
catch code is completed and an address is popped off the stack that
points to the section of code the program was at when the interrupt was
received. CPU is switched to user mode and control is returned to the
place where the interrupt was received.
If you know any further details on this topic I would be interested to
read those as well.
.
- Follow-Ups:
- Re: Signal catch code; can it make kernel commands
- From: loic-dev
- Re: Signal catch code; can it make kernel commands
- From: Maxim Yegorushkin
- Re: Signal catch code; can it make kernel commands
- Prev by Date: Re: Unix newbie in class needs help creating make file.
- Next by Date: Re: sighandler_t & portability
- Previous by thread: sighandler_t & portability
- Next by thread: Re: Signal catch code; can it make kernel commands
- Index(es):
Relevant Pages
|