Zephyr API Documentation 3.7.99
A Scalable Open Source RTOS
|
Initialization function for init entries. More...
#include <init.h>
Data Fields | |
int(* | sys )(void) |
System initialization function. | |
int(* | dev )(const struct device *dev) |
Device initialization function. | |
Initialization function for init entries.
Init entries support both the system initialization and the device APIs. Each API has its own init function signature; hence, we have a union to cover both.
int(* init_function::dev) (const struct device *dev) |
Device initialization function.
dev | Device instance. |
0 | On success |
-errno | If device initialization fails. |
int(* init_function::sys) (void) |
System initialization function.
0 | On success |
-errno | If init fails. |