|
Crinit -- Configurable Rootfs Init
|
Definitions shared between crinit's public and internal APIs. More...
#include <sys/types.h>

Go to the source code of this file.
Data Structures | |
| struct | crinitTaskListEntry_t |
| struct | crinitTaskList_t |
Macros | |
| #define | CRINIT_ENV_NOTIFY_NAME "CRINIT_TASK_NAME" |
| #define | CRINIT_TASK_STATE_LOADED (0 << 0) |
| Task state bitmask indicating the task was loaded, but never ran. | |
| #define | CRINIT_TASK_STATE_STARTING (1 << 0) |
| Task state bitmask indicating the task currently spawns a new process. | |
| #define | CRINIT_TASK_STATE_RUNNING (1 << 1) |
| Bitmask indicating the task has spawned a process and is running. | |
| #define | CRINIT_TASK_STATE_DONE (1 << 2) |
| Bitmask indicating a task has finished without error. | |
| #define | CRINIT_TASK_STATE_FAILED (1 << 3) |
| Bitmask indicating a task has finished with an error code. | |
| #define | CRINIT_TASK_STATE_NOTIFIED (1 << 4) |
| Bitmask indicating the state was reported through the sd_notify()-API. | |
Typedefs | |
| typedef unsigned long | crinitTaskState_t |
| Type to store Task state bitmask. | |
| typedef struct crinitTaskListEntry_t | crinitTaskListEntry_t |
| typedef struct crinitTaskList_t | crinitTaskList_t |
| typedef enum crinitShutdownCmd_t | crinitShutdownCmd_t |
Enumerations | |
| enum | crinitShutdownCmd_t { CRINIT_SHD_UNDEF = 0 , CRINIT_SHD_POWEROFF = 1 , CRINIT_SHD_REBOOT = 2 } |
Definitions shared between crinit's public and internal APIs.
| #define CRINIT_ENV_NOTIFY_NAME "CRINIT_TASK_NAME" |
The name/key of the environment variable Crinit passes to child processes for sd_notify().
| #define CRINIT_TASK_STATE_DONE (1 << 2) |
Bitmask indicating a task has finished without error.
| #define CRINIT_TASK_STATE_FAILED (1 << 3) |
Bitmask indicating a task has finished with an error code.
| #define CRINIT_TASK_STATE_LOADED (0 << 0) |
Task state bitmask indicating the task was loaded, but never ran.
| #define CRINIT_TASK_STATE_NOTIFIED (1 << 4) |
Bitmask indicating the state was reported through the sd_notify()-API.
| #define CRINIT_TASK_STATE_RUNNING (1 << 1) |
Bitmask indicating the task has spawned a process and is running.
| #define CRINIT_TASK_STATE_STARTING (1 << 0) |
Task state bitmask indicating the task currently spawns a new process.
| typedef enum crinitShutdownCmd_t crinitShutdownCmd_t |
Type to represent the shutdown action crinit shall perform.
| typedef struct crinitTaskList_t crinitTaskList_t |
Type to represent a list of tasks.
| typedef struct crinitTaskListEntry_t crinitTaskListEntry_t |
Type to represent an entry in a task list.
| typedef unsigned long crinitTaskState_t |
Type to store Task state bitmask.
| enum crinitShutdownCmd_t |