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

Function sys_mq_close

components/lwp/lwp_syscall.c:9389–9398  ·  view source on GitHub ↗

* @brief Close a message queue descriptor. * * This function closes a message queue descriptor. After calling this function, the * descriptor can no longer be used to interact with the message queue. Any resources * associated with the descriptor are released. If the message queue was opened with the * `O_CLOEXEC` flag, it will be automatically closed when the calling process executes * an `

Source from the content-addressed store, hash-verified

9387 * @see sys_mq_open, sys_mq_unlink
9388 */
9389sysret_t sys_mq_close(mqd_t mqd)
9390{
9391 int ret = 0;
9392#ifdef ARCH_MM_MMU
9393 ret = mq_close(mqd);
9394#else
9395 ret = mq_close(mqd);
9396#endif
9397 return (ret < 0 ? GET_ERRNO() : ret);
9398}
9399
9400#define ICACHE (1<<0)
9401#define DCACHE (1<<1)

Callers

nothing calls this directly

Calls 1

mq_closeFunction · 0.85

Tested by

no test coverage detected