|
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 { CRINIT_HOOK_INIT , CRINIT_HOOK_EXIT , CRINIT_HOOK_START , CRINIT_HOOK_STOP , CRINIT_HOOK_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 |
Hook types.
| 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. |