Crinit -- Configurable Rootfs Init
|
Header related to optional behavior dependent on available system features. More...
Go to the source code of this file.
Typedefs | |
typedef enum crinitHookType_t | crinitHookType_t |
Enumerations | |
enum | crinitHookType_t { INIT , EXIT , START , TASK_ADDED } |
Functions | |
int | crinitFeatureHook (const char *sysFeatName, crinitHookType_t type, void *data) |
Header related to optional behavior dependent on available system features.
typedef enum crinitHookType_t crinitHookType_t |
Hook types.
enum crinitHookType_t |
int crinitFeatureHook | ( | const char * | sysFeatName, |
crinitHookType_t | type, | ||
void * | data | ||
) |
Hook to be called whenever a new feature is provided by a task.
Meant to be used to let Crinit change its own behavior whenever a relevant (optional or delayed) feature needed for some special functionality gets provided.
Currently only handles activation of syslog functionality if series config option USE_SYSLOG is true and a task provides syslog
.
sysFeatName | Name of the newly-provided feature. |
type | Type of the invoked hook. |
data | Hook payload. |