User`s manual
SCIOPTA - Real-Time Kernel
10-4 Manual Version 4.1 User’s Manual
SCIOPTA - Real-Time Kernel
10 Error Handling
10.3.3 Error Hook Declaration Syntax
10.3.3.1 Description
For each registered error hook there must be a declared error hook function.
10.3.3.2 Syntax
int <err_hook_name> (sc_errcode_t errcode, sc_extra_t extra, int user, sc_pcb_t *pcb)
{
... error hook code
};
10.3.3.3 Parameter
errcode Error word.
Error word containing the function code which defines from which SCIOPTA system call the er-
ror was initiated, the error code which contains the specific error information and the error type
which informs about the source and type of error.
extra Error extra word.
Gives additional information depending on the error code.
user User/system error flag.
!= 0 User error.
== 0 System error.
error Error word.
Error word containing the function code which defines from which SCIOPTA system call the er-
ror was initiated, the error code which contains the specific error information and the error type
which informs about the source and type of error.
pcb Process control block.
Pointer to process control block of the process where the error occurred. Please consult pcb.h for
more information about the module control block structure.










