RTEMS Logo

RTEMS 4.6.0pre5 On-Line Library


Message Manager Creating a Message Queue

PREV UP NEXT Bookshelf RTEMS C User's Guide

10.3.1: Creating a Message Queue

The rtems_message_queue_create directive creates a message queue with the user-defined name. The user specifies the maximum message size and maximum number of messages which can be placed in the message queue at one time. The user may select FIFO or task priority as the method for placing waiting tasks in the task wait queue. RTEMS allocates a Queue Control Block (QCB) from the QCB free list to maintain the newly created queue as well as memory for the message buffer pool associated with this message queue. RTEMS also generates a message queue ID which is returned to the calling task.

For GLOBAL message queues, the maximum message size is effectively limited to the longest message which the MPCI is capable of transmitting.


PREV UP NEXT Bookshelf RTEMS C User's Guide

Copyright © 1988-2003 OAR Corporation