procedure Region_Get_Segment_Size ( ID : in RTEMS.ID; Segment : in RTEMS.Address; Size : out RTEMS.Unsigned32; Result : out RTEMS.Status_Codes );
RTEMS.SUCCESSFUL
- segment obtained successfully
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-2004 OAR Corporation