Crinit -- Configurable Rootfs Init
|
#include "elos-common.h"
#include <dlfcn.h>
#include <errno.h>
#include "confparse.h"
#include "globopt.h"
#include "logio.h"
Functions | |
static int | crinitElosdepFetchElosSymbol (void *lp, const char *symbolName, void **symbol) |
int | crinitElosInit (void) |
crinitElosVirtualTable_t * | crinitElosGetVTable (void) |
int | crinitElosDisconnect (crinitElosSession_t *session, pthread_mutex_t *sessionLock) |
Variables | |
static crinitElosVirtualTable_t | crinitElosVTable |
static pthread_mutex_t | crinitElosVTableLock = PTHREAD_MUTEX_INITIALIZER |
|
inlinestatic |
Fetches a single symbol from the elos client shared library.
lp | Pointer to the elos shared library |
symbolName | Name of the symbol to be fetched |
symbol | Function pointer to be assigned |
int crinitElosDisconnect | ( | crinitElosSession_t * | session, |
pthread_mutex_t * | sessionLock | ||
) |
Disconnect from elos daemon.
session | Session to disconnect. |
sessionLock | The session lock. |
crinitElosVirtualTable_t * crinitElosGetVTable | ( | void | ) |
Returns the internal elos virtual table.
int crinitElosInit | ( | void | ) |
Initializes the elos vtable.
|
static |
Elos connection data and callbacks.
|
static |
Mutex protecting elos vtable initialization