rtems_status_code rtems_region_get_segment_size( rtems_id id, void *segment, size_t *size );
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
This directive obtains the size in bytes of the specified segment.
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.
Copyright © 1988-2007OAR Corporation