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:
RTEMS.NO_WAIT
option forces
an immediate return with an error status code.
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.
Copyright © 1988-2008 OAR Corporation