Barrelfish
Functions
init.c File Reference

Functions

struct netifowner_lwip_init (char *card_name, uint64_t queueid)
 
bool lwip_init_ex (const char *card_name, uint64_t queueid, struct waitset *opt_waitset, struct thread_mutex *opt_mutex)
 
bool lwip_init_auto_ex (struct waitset *opt_waitset, struct thread_mutex *opt_mutex)
 
bool lwip_init (const char *card_name, uint64_t queueid)
 

Detailed Description

Modules initialization

Function Documentation

bool lwip_init ( const char *  card_name,
uint64_t  queueid 
)

Perform Sanity check of user-configurable values, and initialize all modules.

bool lwip_init_auto_ex ( struct waitset opt_waitset,
struct thread_mutex *  opt_mutex 
)

Figure out the best NIC card to connect and initialize library network stack.

bool lwip_init_ex ( const char *  card_name,
uint64_t  queueid,
struct waitset opt_waitset,
struct thread_mutex *  opt_mutex 
)

Perform Sanity check of user-configurable values, and initialize all modules.

Parameters
card_nameName of service implementing ethernet driver
queueidQueueid which is allocated to this application
opt_waitsetOptional pointer to waitset to be used by LWIP
opt_mutexOptional pointer to mutex to protect multi-threaded domains
Returns
True iff init completes
struct netif* owner_lwip_init ( char *  card_name,
uint64_t  queueid 
)

To be called by the app which wants to perform DHCP on it's own In current implementation, it is netd. Perform Sanity check of user-configurable values, and initialize all modules.