From 35231eb116c44165d881dd10ff15d27c4ca540d1 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Sun, 17 Sep 2023 09:09:05 -0400 Subject: [PATCH] [kernel] fix interruptible typo --- components/net/lwip/port/sys_arch.c | 2 +- include/rtthread.h | 4 ++-- src/ipc.c | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/components/net/lwip/port/sys_arch.c b/components/net/lwip/port/sys_arch.c index 493ba4e893..4a952cd493 100644 --- a/components/net/lwip/port/sys_arch.c +++ b/components/net/lwip/port/sys_arch.c @@ -410,7 +410,7 @@ u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout) } /*When the waiting msg is generated by the application through signaling mechanisms, only by using interruptible mode can the program be made runnable again*/ - ret = rt_mb_recv_interruptibale(*mbox, (rt_ubase_t *)msg, t); + ret = rt_mb_recv_interruptible(*mbox, (rt_ubase_t *)msg, t); if(ret != RT_EOK) { return SYS_ARCH_TIMEOUT; diff --git a/include/rtthread.h b/include/rtthread.h index d4fea8fe7a..8c21e02312 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -443,7 +443,7 @@ rt_err_t rt_mb_send_wait_killable(rt_mailbox_t mb, rt_int32_t timeout); rt_err_t rt_mb_urgent(rt_mailbox_t mb, rt_ubase_t value); rt_err_t rt_mb_recv(rt_mailbox_t mb, rt_ubase_t *value, rt_int32_t timeout); -rt_err_t rt_mb_recv_interruptibale(rt_mailbox_t mb, rt_ubase_t *value, rt_int32_t timeout); +rt_err_t rt_mb_recv_interruptible(rt_mailbox_t mb, rt_ubase_t *value, rt_int32_t timeout); rt_err_t rt_mb_recv_killable(rt_mailbox_t mb, rt_ubase_t *value, rt_int32_t timeout); rt_err_t rt_mb_control(rt_mailbox_t mb, int cmd, void *arg); #endif /* RT_USING_MAILBOX */ @@ -481,7 +481,7 @@ rt_err_t rt_mq_delete(rt_mq_t mq); #endif /* RT_USING_HEAP */ rt_err_t rt_mq_send(rt_mq_t mq, const void *buffer, rt_size_t size); -rt_err_t rt_mq_send_interrupt(rt_mq_t mq, const void *buffer, rt_size_t size); +rt_err_t rt_mq_send_interruptible(rt_mq_t mq, const void *buffer, rt_size_t size); rt_err_t rt_mq_send_killable(rt_mq_t mq, const void *buffer, rt_size_t size); rt_err_t rt_mq_send_wait(rt_mq_t mq, const void *buffer, diff --git a/src/ipc.c b/src/ipc.c index 4c74ab4877..fe85c9d56c 100644 --- a/src/ipc.c +++ b/src/ipc.c @@ -2816,11 +2816,11 @@ rt_err_t rt_mb_recv(rt_mailbox_t mb, rt_ubase_t *value, rt_int32_t timeout) } RTM_EXPORT(rt_mb_recv); -rt_err_t rt_mb_recv_interruptibale(rt_mailbox_t mb, rt_ubase_t *value, rt_int32_t timeout) +rt_err_t rt_mb_recv_interruptible(rt_mailbox_t mb, rt_ubase_t *value, rt_int32_t timeout) { return _rt_mb_recv(mb, value, timeout, RT_INTERRUPTIBLE); } -RTM_EXPORT(rt_mb_recv_interruptibale); +RTM_EXPORT(rt_mb_recv_interruptible); rt_err_t rt_mb_recv_killable(rt_mailbox_t mb, rt_ubase_t *value, rt_int32_t timeout) { @@ -3459,11 +3459,11 @@ rt_err_t rt_mq_send(rt_mq_t mq, const void *buffer, rt_size_t size) } RTM_EXPORT(rt_mq_send); -rt_err_t rt_mq_send_interrupt(rt_mq_t mq, const void *buffer, rt_size_t size) +rt_err_t rt_mq_send_interruptible(rt_mq_t mq, const void *buffer, rt_size_t size) { return rt_mq_send_wait_interruptible(mq, buffer, size, 0); } -RTM_EXPORT(rt_mq_send_interrupt); +RTM_EXPORT(rt_mq_send_interruptible); rt_err_t rt_mq_send_killable(rt_mq_t mq, const void *buffer, rt_size_t size) {