RTEMS Logo

RTEMS 4.9.4 On-Line Library


Region Manager Building an Option Set

PREV UP NEXT Bookshelf RTEMS Ada User's Guide

14.2.3: Building an Option Set

In general, an option is built by a bitwise OR of the desired option components. The set of valid options for the rtems.region_get_segment directive are listed in the following table:

Option values are specifically designed to be mutually exclusive, therefore bitwise OR and addition operations are equivalent as long as each option appears exactly once in the component list. An option listed as a default is not required to appear in the option list, although it is a good programming practice to specify default options. If all defaults are desired, the option RTEMS.DEFAULT_OPTIONS should be specified on this call.

This example demonstrates the option parameter needed to poll for a segment. The option parameter passed to the rtems.region_get_segment directive should be RTEMS.NO_WAIT.


PREV UP NEXT Bookshelf RTEMS Ada User's Guide

Copyright © 1988-2008 OAR Corporation