|
The Pedigree Project 0.1
|
Include dependency graph for sys.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | SYS_ARCH_TIMEOUT 0xffffffffUL |
| #define | SYS_MBOX_EMPTY SYS_ARCH_TIMEOUT |
| #define | LWIP_COMPAT_MUTEX 0 |
| #define | sys_sem_wait(sem) sys_arch_sem_wait(sem, 0) |
| #define | sys_sem_valid_val(sem) sys_sem_valid(&(sem)) |
| #define | sys_sem_set_invalid_val(sem) sys_sem_set_invalid(&(sem)) |
| #define | sys_mbox_tryfetch(mbox, msg) sys_arch_mbox_tryfetch(mbox, msg) |
| #define | sys_mbox_fetch(mbox, msg) sys_arch_mbox_fetch(mbox, msg, 0) |
| #define | sys_mbox_valid_val(mbox) sys_mbox_valid(&(mbox)) |
| #define | sys_mbox_set_invalid_val(mbox) sys_mbox_set_invalid(&(mbox)) |
| #define | SYS_ARCH_DECL_PROTECT(lev) |
| #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(* | lwip_thread_fn) (void *arg) |
Functions | |
| err_t | sys_mutex_new (sys_mutex_t *mutex) |
| void | sys_mutex_lock (sys_mutex_t *mutex) |
| void | sys_mutex_unlock (sys_mutex_t *mutex) |
| void | sys_mutex_free (sys_mutex_t *mutex) |
| int | sys_mutex_valid (sys_mutex_t *mutex) |
| void | sys_mutex_set_invalid (sys_mutex_t *mutex) |
| err_t | sys_sem_new (sys_sem_t *sem, u8_t count) |
| void | sys_sem_signal (sys_sem_t *sem) |
| u32_t | sys_arch_sem_wait (sys_sem_t *sem, u32_t timeout) |
| void | sys_sem_free (sys_sem_t *sem) |
| int | sys_sem_valid (sys_sem_t *sem) |
| void | sys_sem_set_invalid (sys_sem_t *sem) |
| void | sys_msleep (u32_t ms) |
| err_t | sys_mbox_new (sys_mbox_t *mbox, int size) |
| void | sys_mbox_post (sys_mbox_t *mbox, void *msg) |
| err_t | sys_mbox_post_and_close (sys_mbox_t *mbox, void *msg) |
| err_t | sys_mbox_trypost (sys_mbox_t *mbox, void *msg) |
| u32_t | sys_arch_mbox_fetch (sys_mbox_t *mbox, void **msg, u32_t timeout) |
| u32_t | sys_arch_mbox_tryfetch (sys_mbox_t *mbox, void **msg) |
| void | sys_mbox_free (sys_mbox_t *mbox) |
| int | sys_mbox_valid (sys_mbox_t *mbox) |
| void | sys_mbox_set_invalid (sys_mbox_t *mbox) |
| sys_thread_t | sys_thread_new (const char *name, lwip_thread_fn thread, void *arg, int stacksize, int prio) |
| int | sys_thread_join (sys_thread_t thread) |
| int | sys_thread_is_current (sys_thread_t thread) |
| void | sys_init (void) |
| u32_t | sys_jiffies (void) |
| u32_t | sys_now (void) |
OS abstraction layer
Definition in file sys.h.
| #define LWIP_COMPAT_MUTEX 0 |
| #define SYS_ARCH_DEC | ( | var, | |
| val | |||
| ) |
| #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.
| #define SYS_ARCH_GET | ( | var, | |
| ret | |||
| ) |
| #define SYS_ARCH_INC | ( | var, | |
| val | |||
| ) |
| #define SYS_ARCH_SET | ( | var, | |
| val | |||
| ) |
| #define SYS_ARCH_TIMEOUT 0xffffffffUL |
| #define SYS_MBOX_EMPTY SYS_ARCH_TIMEOUT |
sys_mbox_tryfetch() returns SYS_MBOX_EMPTY if appropriate. For now we use the same magic value, but we allow this to change in future.
| #define sys_mbox_fetch | ( | mbox, | |
| msg | |||
| ) | sys_arch_mbox_fetch(mbox, msg, 0) |
| #define sys_mbox_set_invalid_val | ( | mbox | ) | sys_mbox_set_invalid(&(mbox)) |
Same as sys_mbox_set_invalid() but taking a value, not a pointer
| #define sys_mbox_tryfetch | ( | mbox, | |
| msg | |||
| ) | sys_arch_mbox_tryfetch(mbox, msg) |
| #define sys_mbox_valid_val | ( | mbox | ) | sys_mbox_valid(&(mbox)) |
Same as sys_mbox_valid() but taking a value, not a pointer
| #define sys_sem_set_invalid_val | ( | sem | ) | sys_sem_set_invalid(&(sem)) |
Same as sys_sem_set_invalid() but taking a value, not a pointer
| #define sys_sem_valid_val | ( | sem | ) | sys_sem_valid(&(sem)) |
Same as sys_sem_valid() but taking a value, not a pointer
| #define sys_sem_wait | ( | sem | ) | sys_arch_sem_wait(sem, 0) |
| typedef void(* lwip_thread_fn) (void *arg) |
| void sys_init | ( | void | ) |
Definition at line 53 of file sys_arch.cc.
| u32_t sys_jiffies | ( | void | ) |
Ticks/jiffies since power up.
| err_t sys_mbox_post_and_close | ( | sys_mbox_t * | mbox, |
| void * | msg | ||
| ) |
Pedigree shutdown extension: append one final message and reject writes.
Definition at line 272 of file sys_arch.cc.
References ERR_ARG, ERR_CLSD, and ERR_OK.
Referenced by tcpip_shutdown().
Here is the caller graph for this function:| int sys_thread_is_current | ( | sys_thread_t | thread | ) |
Returns non-zero when thread identifies the calling thread.
Definition at line 126 of file sys_arch.cc.
References ProcessorBase::information(), and sys_thread_is_current().
Referenced by sys_thread_is_current(), tcpip_callback_wait(), and tcpip_shutdown().
Here is the caller graph for this function:| int sys_thread_join | ( | sys_thread_t | thread | ) |
Pedigree shutdown extension for threads returned by sys_thread_new().
Definition at line 114 of file sys_arch.cc.
References pocketknife::attachTo(), pocketknife::attachToForCompletion(), and sys_thread_join().
Referenced by sys_thread_join(), and tcpip_shutdown().
Here is the caller graph for this function: