Zephyr API 3.6.99
|
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. |