next up previous contents index
Next: 10.21.2 oskit_sendsig: deliver a Up: 10.21 Signals Previous: 10.21 Signals

10.21.1 oskit_sendsig_init: initialize kernel signal delivery

 

SYNOPSIS

#include <oskit/c/signal.h>

void oskit_sendsig_init(int (*deliver_function)(int signo, int code, struct trap_state *ts));

DESCRIPTION

Initialize the kernel signal delivery mechanism, providing an upper level signal delivery routine. This delivery function will usually be an entrypoint in the C library that provides the appropriate signal semantics to the application. This entrypoint is responsible for converting the machine dependent trap state information into a suitable signal context structure, as defined by the API of the library in use. Since a pointer to the trap state structure is passed along, the callee is free to modify the machine state in way it wishes.

DEPENDENCIES

oskit_init_libc
9.9.1



University of Utah Flux Research Group