rt_mq_destroy2
Remove a message queue
Usage
#define MODULE #include <linux/module.h> #include <linux/kernel.h> #include <linux/version.h> #include <linux/errno.h> #include rt_ipc.h
int rt_mq_destroy(rt_sem_t *sem);
Overview
rt_mq_destroy removes a message queue previously created with rt_mq_create. mq points to the structure used in the corresponding call to rt_mq_create. Message queue deletion safety is implemented; i.e., any tasks blocked on this message queue when it is destroyed are allowed to run.
Return value
On success, 0 is returned. On failure, a negative value is returned as described below.
Errors
-EINVAL-
sem does not point to a valid rt_mq_t.