
SCIOPTA - Real-Time Kernel
12-2 Manual Version 4.1 User’s Manual
SCIOPTA - Real-Time Kernel
12 Additional Functions
12.3 Error Hook
The error hook is the most important user hook function and should normally be included in most of the systems.
An error hook can be used to log the error and additional data on a logging device if the kernel has detected an error
condition.
The error hook has been described in chapter 10.3 “Error Hook” on page 10-2.
12.4 Message Hooks
In SCIOPTA you can configure Message Transmit Hooks and Message Receive Hooks. These hooks are called
each time a message is transmitted to any process or received by any process. Transmit and Receive Hooks are
mainly used by user written debugger to trace messages.
12.4.1 Registering Message Hooks
Message hooks must be registered by specific system calls. Please consult the SCIOPTA - Kernel, Reference Man-
ual for detailed description of the SCIOPTA system calls.
sc_msgHookRegister Registers a message hook.
12.5 Process Hooks
If the user has configured Process Create Hooks and Process Kill Hooks into the kernel these hooks will be called
each time if the kernel creates or kills a process.
SCIOPTA allows to configure a Process Swap Hook. The Process Swap Hook is called by the kernel each time a
new process is about to be swapped in. This hook is also called if the kernel is entering idle mode.
12.5.1 Registering Process Hooks
Process hooks must be registered by specific system calls. Please consult the SCIOPTA - Kernel, Reference Man-
ual for detailed description of the SCIOPTA system calls.
sc_procHookRegister Registers a process hook.
12.6 Pool Hooks
Pool Create Hooks and Pool Kill Hooks are available in SCIOPTA mainly for debugging purposes. Each time a
pool is created or killed the kernel is calling these hooks provided that the user has configured the system accord
-
ingly.
12.6.1 Registering Pool Hooks
Pool hooks must be registered by specific system calls. Please consult the SCIOPTA - Kernel, Reference Manual
for detailed description of the SCIOPTA system calls.
sc_poolHookRegister Registers a pool hook.
Kommentare zu diesen Handbüchern