INET Framework for OMNeT++/OMNEST
sys.h File Reference
#include "lwip/opt.h"
#include "lwip/err.h"
#include "arch/sys_arch.h"

Classes

struct  inet::tcp::sys_timeo
 
struct  inet::tcp::sys_timeouts
 

Namespaces

 inet
 Copyright (c) 2005 Jan Ringo�, www.ringos.cz.
 
 inet::tcp
 

Macros

#define SYS_ARCH_TIMEOUT   0xffffffffUL
 Return code for timeouts from sys_arch_mbox_fetch and sys_arch_sem_wait. More...
 
#define SYS_MBOX_EMPTY   SYS_ARCH_TIMEOUT
 
#define sys_mbox_tryfetch(mbox, msg)   sys_arch_mbox_tryfetch(mbox, msg)
 
#define SYS_ARCH_DECL_PROTECT(lev)
 SYS_LIGHTWEIGHT_PROT define SYS_LIGHTWEIGHT_PROT in lwipopts.h if you want inter-task protection for certain critical regions during buffer allocation, deallocation and memory allocation and deallocation. More...
 
#define SYS_ARCH_PROTECT(lev)
 
#define SYS_ARCH_UNPROTECT(lev)
 
#define SYS_ARCH_INC(var, val)
 
#define SYS_ARCH_DEC(var, val)
 
#define SYS_ARCH_GET(var, ret)
 
#define SYS_ARCH_SET(var, val)
 

Typedefs

typedef void(* inet::tcp::sys_timeout_handler) (void *arg)
 

Functions

void inet::tcp::sys_init (void)
 
void inet::tcp::sys_timeout (u32_t msecs, sys_timeout_handler h, void *arg)
 
void inet::tcp::sys_untimeout (sys_timeout_handler h, void *arg)
 
struct sys_timeouts * inet::tcp::sys_arch_timeouts (void)
 
sys_sem_t inet::tcp::sys_sem_new (u8_t count)
 
void inet::tcp::sys_sem_signal (sys_sem_t sem)
 
u32_t inet::tcp::sys_arch_sem_wait (sys_sem_t sem, u32_t timeout)
 
void inet::tcp::sys_sem_free (sys_sem_t sem)
 
void inet::tcp::sys_sem_wait (sys_sem_t sem)
 
int inet::tcp::sys_sem_wait_timeout (sys_sem_t sem, u32_t timeout)
 
void inet::tcp::sys_msleep (u32_t ms)
 
u32_t inet::tcp::sys_jiffies (void)
 
sys_mbox_t inet::tcp::sys_mbox_new (int size)
 
void inet::tcp::sys_mbox_post (sys_mbox_t mbox, void *msg)
 
err_t inet::tcp::sys_mbox_trypost (sys_mbox_t mbox, void *msg)
 
u32_t inet::tcp::sys_arch_mbox_fetch (sys_mbox_t mbox, void **msg, u32_t timeout)
 
u32_t inet::tcp::sys_arch_mbox_tryfetch (sys_mbox_t mbox, void **msg)
 
void inet::tcp::sys_mbox_free (sys_mbox_t mbox)
 
void inet::tcp::sys_mbox_fetch (sys_mbox_t mbox, void **msg)
 
sys_thread_t inet::tcp::sys_thread_new (char *name, void(*thread)(void *arg), void *arg, int stacksize, int prio)
 
u32_t inet::tcp::sys_now (void)
 Returns the current time in milliseconds. More...
 

Macro Definition Documentation

#define SYS_ARCH_DEC (   var,
  val 
)
Value:
do { \
SYS_ARCH_PROTECT(old_level); \
var -= val; \
SYS_ARCH_UNPROTECT(old_level); \
} while(0)
#define SYS_ARCH_DECL_PROTECT(lev)
SYS_LIGHTWEIGHT_PROT define SYS_LIGHTWEIGHT_PROT in lwipopts.h if you want inter-task protection for ...
Definition: sys.h:210
#define SYS_ARCH_PROTECT(lev)
Definition: sys.h:211
#define SYS_ARCH_UNPROTECT(lev)
Definition: sys.h:212
#define SYS_ARCH_DECL_PROTECT (   lev)

SYS_LIGHTWEIGHT_PROT define SYS_LIGHTWEIGHT_PROT in lwipopts.h if you want inter-task protection for certain critical regions during buffer allocation, deallocation and memory allocation and deallocation.

Referenced by inet::tcp::memp_free(), inet::tcp::memp_malloc(), inet::tcp::pbuf_free(), and inet::tcp::pbuf_ref().

#define SYS_ARCH_GET (   var,
  ret 
)
Value:
do { \
SYS_ARCH_PROTECT(old_level); \
ret = var; \
SYS_ARCH_UNPROTECT(old_level); \
} while(0)
#define SYS_ARCH_DECL_PROTECT(lev)
SYS_LIGHTWEIGHT_PROT define SYS_LIGHTWEIGHT_PROT in lwipopts.h if you want inter-task protection for ...
Definition: sys.h:210
#define SYS_ARCH_PROTECT(lev)
Definition: sys.h:211
#define SYS_ARCH_UNPROTECT(lev)
Definition: sys.h:212
#define SYS_ARCH_INC (   var,
  val 
)
Value:
do { \
SYS_ARCH_PROTECT(old_level); \
var += val; \
SYS_ARCH_UNPROTECT(old_level); \
} while(0)
#define SYS_ARCH_DECL_PROTECT(lev)
SYS_LIGHTWEIGHT_PROT define SYS_LIGHTWEIGHT_PROT in lwipopts.h if you want inter-task protection for ...
Definition: sys.h:210
#define SYS_ARCH_PROTECT(lev)
Definition: sys.h:211
#define SYS_ARCH_UNPROTECT(lev)
Definition: sys.h:212
#define SYS_ARCH_PROTECT (   lev)
#define SYS_ARCH_SET (   var,
  val 
)
Value:
do { \
SYS_ARCH_PROTECT(old_level); \
var = val; \
SYS_ARCH_UNPROTECT(old_level); \
} while(0)
#define SYS_ARCH_DECL_PROTECT(lev)
SYS_LIGHTWEIGHT_PROT define SYS_LIGHTWEIGHT_PROT in lwipopts.h if you want inter-task protection for ...
Definition: sys.h:210
#define SYS_ARCH_PROTECT(lev)
Definition: sys.h:211
#define SYS_ARCH_UNPROTECT(lev)
Definition: sys.h:212
#define SYS_ARCH_TIMEOUT   0xffffffffUL

Return code for timeouts from sys_arch_mbox_fetch and sys_arch_sem_wait.

#define SYS_ARCH_UNPROTECT (   lev)
#define SYS_MBOX_EMPTY   SYS_ARCH_TIMEOUT
#define sys_mbox_tryfetch (   mbox,
  msg 
)    sys_arch_mbox_tryfetch(mbox, msg)