demi_init
- Initializes Demikernel.
#include <demi/libos.h>
int demi_init(int argc, char *const argv[]);
demi_init()
initializes Demikernel. It sets up devices, instantiates LibOSes, and performs general initialization
tasks.
On success, zero is returned. On error, a positive error code is returned and any subsequent call to Demikernel may result in unexpected behavior.
On error, one of the following positive error codes is returned:
EINVAL
- Theargc
argument is less than or equal to zero.EINVAL
- Theargv
argument isNULL
.EEXIST
- The LibOS has already been initialized.
Error codes are conformant to POSIX.1-2017.
Demikernel may fail with error codes that are not listed in this manual page.
Any behavior that is not documented in this manual page is unintentional and should be reported.