FreeRTOS:
POSIX
|
Return to main page ↑ |
Message queues. More...
#include "FreeRTOS_POSIX/time.h"
Go to the source code of this file.
Data Structures | |
struct | mq_attr |
Message queue attributes. More... | |
Typedefs | |
typedef void * | mqd_t |
Message queue descriptor. | |
Functions | |
int | mq_close (mqd_t mqdes) |
Close a message queue. More... | |
int | mq_getattr (mqd_t mqdes, struct mq_attr *mqstat) |
Get message queue attributes. More... | |
mqd_t | mq_open (const char *name, int oflag, mode_t mode, struct mq_attr *attr) |
Open a message queue. More... | |
ssize_t | mq_receive (mqd_t mqdes, char *msg_ptr, size_t msg_len, unsigned int *msg_prio) |
Receive a message from a message queue. More... | |
int | mq_send (mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned msg_prio) |
Send a message to a message queue. More... | |
ssize_t | mq_timedreceive (mqd_t mqdes, char *msg_ptr, size_t msg_len, unsigned *msg_prio, const struct timespec *abstime) |
Receive a message from a message queue with timeout. More... | |
int | mq_timedsend (mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned msg_prio, const struct timespec *abstime) |
Send a message to a message queue with timeout. More... | |
int | mq_unlink (const char *name) |
Remove a message queue. More... | |
int mq_close | ( | mqd_t | mqdes | ) |
Close a message queue.
http://pubs.opengroup.org/onlinepubs/9699919799/functions/mq_close.html
0 | - Upon successful completion |
-1 | - A error occurred. errno is also set. |
Get message queue attributes.
http://pubs.opengroup.org/onlinepubs/9699919799/functions/mq_getattr.html
0 | - Upon successful completion |
-1 | - A error occurred. errno is also set. |
Open a message queue.
http://pubs.opengroup.org/onlinepubs/9699919799/functions/mq_open.html
Message | queue descriptor – Upon successful completion |
(mqd_t) | - 1 – An error occurred. errno is also set. |
Receive a message from a message queue.
http://pubs.opengroup.org/onlinepubs/9699919799/functions/mq_receive.html
The | length of the selected message in bytes - Upon successful completion. The message is removed from the queue |
-1 | - An error occurred. errno is also set. |
int mq_send | ( | mqd_t | mqdes, |
const char * | msg_ptr, | ||
size_t | msg_len, | ||
unsigned | msg_prio | ||
) |
Send a message to a message queue.
http://pubs.opengroup.org/onlinepubs/9699919799/functions/mq_send.html
0 | - Upon successful completion. |
-1 | - An error occurred. errno is also set. |
ssize_t mq_timedreceive | ( | mqd_t | mqdes, |
char * | msg_ptr, | ||
size_t | msg_len, | ||
unsigned * | msg_prio, | ||
const struct timespec * | abstime | ||
) |
Receive a message from a message queue with timeout.
http://pubs.opengroup.org/onlinepubs/9699919799/functions/mq_timedreceive.html
The | length of the selected message in bytes - Upon successful completion. The message is removed from the queue |
-1 | - An error occurred. errno is also set. |
int mq_timedsend | ( | mqd_t | mqdes, |
const char * | msg_ptr, | ||
size_t | msg_len, | ||
unsigned | msg_prio, | ||
const struct timespec * | abstime | ||
) |
Send a message to a message queue with timeout.
http://pubs.opengroup.org/onlinepubs/9699919799/functions/mq_timedsend.html
0 | - Upon successful completion. |
-1 | - An error occurred. errno is also set. |
int mq_unlink | ( | const char * | name | ) |
Remove a message queue.
http://pubs.opengroup.org/onlinepubs/9699919799/functions/mq_unlink.html
0 | - Upon successful completion. |
-1 | - An error occurred. errno is also set. |