|
Crinit -- Configurable Rootfs Init
|
Implementation of optional behavior dependent on available system features. More...
#include "optfeat.h"#include <string.h>#include "common.h"#include "globopt.h"#include "logio.h"#include "taskdb.h"
Data Structures | |
| struct | crinitOptFeatMap_t |
Typedefs | |
| typedef int(* | crinitFeatActivationFunc_t) (void *data) |
| typedef struct crinitOptFeatMap_t | crinitOptFeatMap_t |
Functions | |
| static int | crinitActivateSyslog (void *data) |
| int | crinitFeatureHook (const char *sysFeatName, crinitHookType_t type, void *data) |
Implementation of optional behavior dependent on available system features.
| typedef int(* crinitFeatActivationFunc_t) (void *data) |
| typedef struct crinitOptFeatMap_t crinitOptFeatMap_t |
|
static |
| 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. |