RTEMS Logo

RTEMS 4.9.2 On-Line Library


Region Manager REGION_GET_SEGMENT_SIZE - Obtain size of a segment

PREV UP NEXT Bookshelf RTEMS C User's Guide

14.4.7: REGION_GET_SEGMENT_SIZE - Obtain size of a segment

CALLING SEQUENCE:

rtems_status_code rtems_region_get_segment_size(
  rtems_id  id,
  void     *segment,
  size_t   *size
);

DIRECTIVE STATUS CODES:

RTEMS_SUCCESSFUL - segment obtained successfully
RTEMS_INVALID_ADDRESS - segment is NULL
RTEMS_INVALID_ADDRESS - size is NULL
RTEMS_INVALID_ID - invalid region id
RTEMS_INVALID_ADDRESS - segment address not in region

DESCRIPTION:

This directive obtains the size in bytes of the specified segment.

NOTES:

The actual length of the allocated segment may be larger than the requested size because a segment size is always a multiple of the region's page size.


PREV UP NEXT Bookshelf RTEMS C User's Guide

Copyright © 1988-2008 OAR Corporation