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_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-2008 OAR Corporation