next up previous contents index
Next: 13.21.2 oskit_sendsig: deliver a Up: 13.21 Signals Previous: 13.21 Signals

13.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
12.7.1
oskit_init_libc
18.8.1



Utah Flux Research Group