next up previous contents
Next: 2.11 fluke_thread_get_saved_state: retrieve the Up: 2 Thread Previous: 2.9 fluke_thread_get_client: retrieve the

2.10 fluke_thread_get_handlers: return the exception handling routines registered for a thread.

SYNOPSIS

void fluke_thread_set_handlers(fluke_thread_t *cur_thread, oskit_addr_t *trap_handler, oskit_addr_t *interrupt_handler, oskit_addr_t *client_alert_handler, oskit_addr_t *server_alert_handler);

DESCRIPTION

Returns the exception handlers currently set via a previous call to fluke_thread_set_handlers.

The parameters are pointers to locations that are filled in with the addresses of the exception handling functions. A zero parameter can be passed if the value of a particular handler is not needed.

PARAMETERS

cur_thread
A pointer to the thread object representing the current thread, e.g. as returned by fluke_thread_self.
trap_handler
A pointer to a location to be filled with the virtual address of the trap handler routine in effect or zero if not desired.
interrupt_handler
A pointer to a location to be filled with the virtual address of the interrupt handler routine in effect. or zero if not desired.
client_alert_handler
A pointer to a location to be filled with the virtual address of the client-side alert handler routine in effect or zero if not desired.
server_alert_handler
A pointer to a location to be filled with the virtual address of the server-side alert handler routine in effect or zero if not desired.

ERRORS

If any of the following errors is detected by the Fluke implementation, it causes the current thread to take a synchronous exception with one of the following codes. All of these have an implicit FLUKE_INSANITY_ prefix.
NOT_CURRENT_THREAD
Thread specified was not the current thread.

RELATED INFORMATION

fluke_thread_set_handlers,



Utah Flux Research Group