|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
函数 | |
| int | osal_wait_init (osal_wait *wait) |
| Initialize a waiting queue. | |
| int | osal_wait_interruptible (osal_wait *wait, osal_wait_condition_func func, const void *param) |
| sleep until a condition gets true | |
| int | osal_wait_uninterruptible (osal_wait *wait, osal_wait_condition_func func, const void *param) |
| sleep until a condition gets true | |
| int | osal_wait_timeout_interruptible (osal_wait *wait, osal_wait_condition_func func, const void *param, unsigned long ms) |
| sleep until a condition gets true or a timeout elapses. | |
| int | osal_wait_timeout_uninterruptible (osal_wait *wait, osal_wait_condition_func func, const void *param, unsigned long ms) |
| sleep until a condition gets true or a timeout elapses. | |
| void | osal_wait_wakeup (osal_wait *wait) |
| wake up threads blocked on a waitqueue. | |
| void | osal_wait_wakeup_interruptible (osal_wait *wait) |
| wake up threads blocked on a waitqueue. | |
| void | osal_wait_destroy (osal_wait *wait) |
| to destroy the wait. | |
| void osal_wait_destroy | ( | osal_wait * | wait | ) |
to destroy the wait.
| wait | [in] The wait to be destroyed. |
| int osal_wait_init | ( | osal_wait * | wait | ) |
Initialize a waiting queue.
| wait | [out] The wait queue to be initialized. |
| int osal_wait_interruptible | ( | osal_wait * | wait, |
| osal_wait_condition_func | func, | ||
| const void * | param | ||
| ) |
sleep until a condition gets true
| wait | [in] The waitqueue to wait on. |
| func | [in] Then function to be run. |
| param | [in] Param of the function to be run. |
| int osal_wait_timeout_interruptible | ( | osal_wait * | wait, |
| osal_wait_condition_func | func, | ||
| const void * | param, | ||
| unsigned long | ms | ||
| ) |
sleep until a condition gets true or a timeout elapses.
| wait | [in] the waitqueue to wait on. |
| func | [in] a C expression for the event to wait for. |
| param | [in] Param of the function to be run. |
| ms | [in] timeout, in ms. |
| wait | [IN] the waitqueue to wait on. |
| condition | [IN] a condition evaluates to true or false. |
| timeout | [IN] the max sleep time unit is ms. |
| #0 | return 0 if the condition evaluated to false after the timeout elapsed |
| #1 | return 1 if the condition evaluated to true after the timeout elapsed |
| #others | return the remaining ticks if the condition evaluated to true before the timeout elapsed |
| int osal_wait_timeout_uninterruptible | ( | osal_wait * | wait, |
| osal_wait_condition_func | func, | ||
| const void * | param, | ||
| unsigned long | ms | ||
| ) |
sleep until a condition gets true or a timeout elapses.
| wait | [in] The waitqueue to wait on. |
| func | [in] A C expression for the event to wait for. |
| param | [in] Param of the function to be run. |
| ms | [in] Timeout, in ms. |
| int osal_wait_uninterruptible | ( | osal_wait * | wait, |
| osal_wait_condition_func | func, | ||
| const void * | param | ||
| ) |
sleep until a condition gets true
| void osal_wait_wakeup | ( | osal_wait * | wait | ) |
wake up threads blocked on a waitqueue.
| wait | [in] The wait to be wake up. |
| void osal_wait_wakeup_interruptible | ( | osal_wait * | wait | ) |
wake up threads blocked on a waitqueue.
| wait | [in] The wait to be wake up. |