Kernel Event Handlers
Event handlers allow drivers to register one or more functions to be called when an event occurs. As an example, before halting the system, every function that is registered with the event handler shutdown_final
is called. Table 5-1 describes every event handler that is available.
Table 5-1. Kernel Event Handlers
Event Handler | Description |
---|---|
| Registered functions are called when the system is sent to sleep. |
| Registered functions are called when the system is woken up. |
| Registered functions are called when a solicited item under /dev does not exist; in other words, these functions create device nodes on demand. |
| Registered functions are called when an address is set up on a network interface. ... |
Get FreeBSD Device Drivers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.