next up previous contents index
Next: 11 Symmetric Multiprocessing: liboskit_smp.a Up: 10.21 Signals Previous: 10.21.2 oskit_sendsig: deliver a

10.21.3 sendsig_trap_handler: convert trap into a signal

 

SYNOPSIS

#include <oskit/c/signal.h>
#include <oskit/x86/base_trap.h>

void oskit_sendsig(struct trap_state *state);

DESCRIPTION

Convert the machine dependent trap state structure state (see Section 10.8.1) into a signal code, and pass that, along with the trap state, to the C library via oskit_sendsig above.

This routine is provided as a default trap handler that can be plugged into the base_trap_handlers array (see Section 10.8.4). Unexpected hardware traps are thus converted into signals and delivered to the application through the C library.

PARAMETERS

state
A pointer to the trap state structure.



University of Utah Flux Research Group