20#include "pedigree/kernel/Log.h"
21#include "pedigree/kernel/process/Completion.h"
23#include "modules/Module.h"
29#pragma GCC visibility push(hidden)
33static void tcpipInitComplete(
void*) {
37static err_t stopTcpip() {
53 if (!tcpipInitPending.
wait()) {
54 if (stopTcpip() !=
ERR_OK) {
55 FATAL(
"lwIP could not stop its tcpip worker after interrupted init");
64 if (stopTcpip() !=
ERR_OK) {
65 FATAL(
"lwIP could not stop and join its tcpip worker");
69MODULE_INFO(
"lwip", &entry, &exit);
MUST_USE_RESULT bool wait(WaitQueue::StackDiscardCleanup onStackDiscard=nullptr, void *stackDiscardContext=nullptr)
void sys_msleep(u32_t ms)
void tcpip_init(tcpip_init_done_fn initfunc, void *arg)
err_t tcpip_shutdown(void)