20#ifndef ZEPHYR_INCLUDE_POSIX_MESSAGE_PASSING_H_
21#define ZEPHYR_INCLUDE_POSIX_MESSAGE_PASSING_H_
90int mq_receive(
mqd_t mqdes,
char *msg_ptr,
size_t msg_len,
unsigned int *msg_prio);
102int mq_send(
mqd_t mqdes,
const char *msg_ptr,
size_t msg_len,
unsigned int msg_prio);
int mq_close(mqd_t mqdes)
Close a message queue descriptor.
int mq_getattr(mqd_t mqdes, struct mq_attr *mqstat)
Get the attributes of a message queue.
int mq_notify(mqd_t mqdes, const struct sigevent *notification)
Register for notification when a message arrives on an empty queue.
mqd_t mq_open(const char *name, int oflags,...)
Open or create a message queue.
int mq_setattr(mqd_t mqdes, const struct mq_attr *mqstat, struct mq_attr *omqstat)
Set the attributes of a message queue.
void * mqd_t
Opaque message queue descriptor returned by mq_open().
int mq_timedreceive(mqd_t mqdes, char *msg_ptr, size_t msg_len, unsigned int *msg_prio, const struct timespec *abstime)
Receive a message from a queue with an absolute timeout.
int mq_timedsend(mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned int msg_prio, const struct timespec *abstime)
Send a message to a queue with an absolute timeout.
int mq_unlink(const char *name)
Remove a named message queue.
int mq_receive(mqd_t mqdes, char *msg_ptr, size_t msg_len, unsigned int *msg_prio)
Receive the oldest highest-priority message from a queue.
int mq_send(mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned int msg_prio)
Add a message to a queue.
Message queue attributes used with mq_getattr() and mq_setattr().
long mq_curmsgs
Number of messages currently queued.
long mq_flags
Message queue flags (O_NONBLOCK).
long mq_maxmsg
Maximum number of messages.
long mq_msgsize
Maximum message size in bytes.
Structure describing how to notify about an asynchronous event.
Time value with nanosecond resolution.
POSIX time-of-day types and functions (<sys/time.h>)