ReactOS 0.4.15-dev-6656-gbbb33a6
|
Go to the source code of this file.
Classes | |
struct | _thread_t |
Typedefs | |
typedef struct _thread_t * | thread_t |
Functions | |
u32_t | sys_now (void) |
void | sys_arch_protect (sys_prot_t *lev) |
void | sys_arch_unprotect (sys_prot_t lev) |
err_t | sys_sem_new (sys_sem_t *sem, u8_t count) |
int | sys_sem_valid (sys_sem_t *sem) |
void | sys_sem_set_invalid (sys_sem_t *sem) |
void | sys_sem_free (sys_sem_t *sem) |
void | sys_sem_signal (sys_sem_t *sem) |
u32_t | sys_arch_sem_wait (sys_sem_t *sem, u32_t timeout) |
err_t | sys_mbox_new (sys_mbox_t *mbox, int size) |
int | sys_mbox_valid (sys_mbox_t *mbox) |
void | sys_mbox_set_invalid (sys_mbox_t *mbox) |
void | sys_mbox_free (sys_mbox_t *mbox) |
void | sys_mbox_post (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) |
err_t | sys_mbox_trypost (sys_mbox_t *mbox, void *msg) |
VOID NTAPI | LwipThreadMain (PVOID Context) |
sys_thread_t | sys_thread_new (const char *name, lwip_thread_fn thread, void *arg, int stacksize, int prio) |
void | sys_init (void) |
void | sys_shutdown (void) |
Definition at line 256 of file sys_arch.c.
Referenced by sys_thread_new().
u32_t sys_arch_mbox_fetch | ( | sys_mbox_t * | mbox, |
void ** | msg, | ||
u32_t | timeout | ||
) |
Wait for a new message to arrive in the mbox
mbox | mbox to get a message from |
msg | pointer where the message is stored |
timeout | maximum time (in milliseconds) to wait for a message |
Definition at line 177 of file sys_arch.c.
Referenced by sys_arch_mbox_tryfetch().
u32_t sys_arch_mbox_tryfetch | ( | sys_mbox_t * | mbox, |
void ** | msg | ||
) |
Wait for a new message to arrive in the mbox
mbox | mbox to get a message from |
msg | pointer where the message is stored |
timeout | maximum time (in milliseconds) to wait for a message |
Definition at line 238 of file sys_arch.c.
void sys_arch_protect | ( | sys_prot_t * | lev | ) |
Definition at line 33 of file sys_arch.c.
Wait for a semaphore for the specified timeout
sem | the semaphore to wait for |
timeout | timeout in milliseconds to wait (0 = wait forever) |
Definition at line 86 of file sys_arch.c.
Referenced by sys_msleep().
void sys_arch_unprotect | ( | sys_prot_t | lev | ) |
Definition at line 40 of file sys_arch.c.
Definition at line 305 of file sys_arch.c.
Referenced by lwip_init().
void sys_mbox_free | ( | sys_mbox_t * | mbox | ) |
Delete an mbox
mbox | mbox to delete |
Definition at line 152 of file sys_arch.c.
err_t sys_mbox_new | ( | sys_mbox_t * | mbox, |
int | size | ||
) |
Create a new mbox of specified size
mbox | pointer to the mbox to create |
size | (miminum) number of messages in this mbox |
Definition at line 128 of file sys_arch.c.
Referenced by tcpip_init().
void sys_mbox_post | ( | sys_mbox_t * | mbox, |
void * | msg | ||
) |
Post a message to an mbox - may not fail -> blocks if full, only used from tasks not from ISR
mbox | mbox to posts the message |
msg | message to post (ATTENTION: can be NULL) |
Definition at line 160 of file sys_arch.c.
Referenced by sys_mbox_trypost(), and tcpip_callback_with_block().
void sys_mbox_set_invalid | ( | sys_mbox_t * | mbox | ) |
Set an mbox invalid so that sys_mbox_valid returns 0
Definition at line 146 of file sys_arch.c.
Referenced by sys_mbox_free().
err_t sys_mbox_trypost | ( | sys_mbox_t * | mbox, |
void * | msg | ||
) |
Try to post a message to an mbox - may fail if full or ISR
mbox | mbox to posts the message |
msg | message to post (ATTENTION: can be NULL) |
Definition at line 247 of file sys_arch.c.
Referenced by tcpip_callback_with_block(), tcpip_input(), and tcpip_trycallback().
int sys_mbox_valid | ( | sys_mbox_t * | mbox | ) |
Check if an mbox is valid/allocated: return 1 for valid, 0 for invalid
Definition at line 141 of file sys_arch.c.
Referenced by tcpip_callback_with_block(), tcpip_input(), and tcpip_trycallback().
Returns the current time in milliseconds, may be the same as sys_jiffies or at least based on it.
Definition at line 23 of file sys_arch.c.
Delete a semaphore
sem | semaphore to delete |
Definition at line 72 of file sys_arch.c.
Referenced by sys_msleep().
Create a new semaphore
sem | pointer to the semaphore to create |
count | initial count of the semaphore |
Definition at line 46 of file sys_arch.c.
Referenced by sys_msleep().
Set a semaphore invalid so that sys_sem_valid returns 0
Definition at line 66 of file sys_arch.c.
Referenced by sys_sem_free().
Check if a sempahore is valid/allocated: return 1 for valid, 0 for invalid
Definition at line 61 of file sys_arch.c.
Definition at line 332 of file sys_arch.c.
Referenced by LibIPShutdown().
sys_thread_t sys_thread_new | ( | const char * | name, |
lwip_thread_fn | thread, | ||
void * | arg, | ||
int | stacksize, | ||
int | prio | ||
) |
The only thread function: Creates a new thread
name | human-readable name for the thread (used for debugging purposes) |
thread | thread-function |
arg | parameter passed to 'thread' |
stacksize | stack size in bytes for the new thread (may be ignored by ports) |
prio | priority of the new thread (may be ignored by ports) |
Definition at line 275 of file sys_arch.c.
Referenced by tcpip_init().
NPAGED_LOOKASIDE_LIST MessageLookasideList |
Definition at line 10 of file sys_arch.c.
Referenced by LibTCPBind(), LibTCPClose(), LibTCPConnect(), LibTCPListen(), LibTCPSend(), LibTCPShutdown(), LibTCPSocket(), sys_init(), and sys_shutdown().
NPAGED_LOOKASIDE_LIST QueueEntryLookasideList |
Definition at line 11 of file sys_arch.c.
Referenced by LibTCPEmptyQueue(), LibTCPEnqueuePacket(), LibTCPGetDataFromConnectionQueue(), sys_init(), and sys_shutdown().
|
static |
Definition at line 13 of file sys_arch.c.
Referenced by DoStopService(), KeStallExecutionProcessor(), KmtEnsureServiceState(), NtWaitForDebugEvent(), ProgressCountdown(), CWineTest::RunTest(), sys_init(), sys_now(), and USB2_AllocateTimeForEndpoint().
KEVENT TerminationEvent |
Definition at line 9 of file sys_arch.c.
Referenced by sys_arch_mbox_fetch(), sys_arch_sem_wait(), sys_init(), sys_shutdown(), and WaitForEventSafely().
|
static |
Definition at line 6 of file sys_arch.c.
Referenced by LwipThreadMain(), NtQueryInformationThread(), sys_init(), and sys_shutdown().
|
static |
Definition at line 7 of file sys_arch.c.
Referenced by LwipThreadMain(), sys_init(), and sys_shutdown().