CompuLab SBC-X270 Manual de usuario Pagina 83

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 226
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 82
SCIOPTA - Real-Time Kernel
User’s Manual Manual Version 4.1 10-3
SCIOPTA - Real-Time Kernel
10 Error Handling
10.3.1 Error Information
When an error hook is called from the kernel, all information about the error are transferred in 32-bit error word
(parameter errcode). Please consult the SCIOPTA - Kernel, Reference Manual for detailed description of the
SCIOPTA error word. There is also an additional 32-bit extra error word available to the user.
Figure 10-1: 32-bit Error Word (Parameter: errcode)
Function Code Error Code Error Type
12 Bits 12 Bits8 Bits
32 Bits
The Function Code defines from which SCIOPTA system call the error was initiated.
The Error Code contains the specific error information.
The Error Type inform
s about the source and type of error.
There are three error types in a SCIOPTA kernel.
SC_ERR_SYSTEM_FATAL, system wide fatal error.
SC_ERR_MODULE_FATAL, module wide fatal error.
SC_ERR_PROCESS_FATAL, process wide fa
tal error.
There are three error warnings in a SCIOPTA kernel.
SC_ERR_SYSTEM_WARNING, sy
stem wide warning.
SC_ERR_MODULE_WARNING, module wide warning.
SC_ERR_PROCESS_WARNING, process wide warning.
10.3.2 Error Hook Registering
An error hook is registered by using the sc_miscErrorHookRegister system call.
If the error hook is registered from within the system module it is
registered as a global error hook. In this case the
error hook registering will be done in the start hook.
If the error hook is registered from within a module which is not the system module it will be registered as a module
erro
r hook.
Vista de pagina 82
1 2 ... 78 79 80 81 82 83 84 85 86 87 88 ... 225 226

Comentarios a estos manuales

Sin comentarios