shutdown
![]() |
![]() |
![]() |
![]() |
shutdown()
Clean up when the input manager terminates
Synopsis:
static int shutdown( message_context_t *pContext,
int delay );
Description:
This function is used to perform any required cleanup before the devi-* program terminates. It's called by the Input Runtime System when a terminal signal has been caught.
This function should bring the state of the system to a point suitable for process termination.
The arguments are:
- pContext
- Pointer to the message context structure
- delay
- Reserved for future use. For now use 0.
Returns:
EOK
Examples:
See device/kb.c.
Classification:
Your code
| Safety: | |
|---|---|
| Interrupt handler | Yes |
| Signal handler | Yes |
| Thread | Yes |
![]() |
![]() |
![]() |
![]() |
![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)