MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_ipc_msg_init

Function rt_ipc_msg_init

components/lwp/lwp_ipc.c:101–109  ·  view source on GitHub ↗

* Initialized the IPC message. */

Source from the content-addressed store, hash-verified

99 * Initialized the IPC message.
100 */
101static void rt_ipc_msg_init(rt_ipc_msg_t msg, struct rt_channel_msg *data, rt_uint8_t need_reply)
102{
103 RT_ASSERT(msg != RT_NULL);
104
105 msg->need_reply = need_reply;
106 msg->msg = *data;
107 msg->msg.sender = (void *)rt_thread_self();
108 rt_list_init(&msg->mlist);
109}
110
111/**
112 * Initialized the list of the waiting receivers on the IPC channel.

Callers 2

_do_send_recv_timeoutFunction · 0.85
rt_raw_channel_replyFunction · 0.85

Calls 2

rt_thread_selfFunction · 0.85
rt_list_initFunction · 0.85

Tested by

no test coverage detected