RTEMS Logo

RTEMS 4.7.1 On-Line Library


Region Manager Acquiring a Segment

PREV UP NEXT Bookshelf RTEMS Ada User's Guide

14.3.4: Acquiring a Segment

The rtems.region_get_segment directive attempts to acquire a segment from a specified region. If the region has enough available free memory, then a segment is returned successfully to the caller. When the segment cannot be allocated, one of the following situations applies:

If the task waits for the segment, then it is placed in the region's task wait queue in either FIFO or task priority order. All tasks waiting on a region are returned an error when the message queue is deleted.


PREV UP NEXT Bookshelf RTEMS Ada User's Guide

Copyright © 1988-2004 OAR Corporation