* Initialized the IPC message. */
| 99 | * Initialized the IPC message. |
| 100 | */ |
| 101 | static 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. |
no test coverage detected