Quick rtems partition mgr question

Smith, Gene gene.smith at siemens.com
Wed Nov 17 14:40:59 UTC 2004


Smith, Gene wrote, On 11/16/2004 7:33 PM:

> Is there any way to obtain the size of the buffer that was allocated for 
> a particular partition id? There does not seems to be a 
> rtems_partition_...() call to do this.
> 
> Note:
> There is a call that does this for regions: rtems_region_get_segment_size().

With this you have to give it a segment pointer and id to get size. Just 
want to pass the id.

However, it looks like it is easy to add a new partition function like 
this to get the buffer size:

rtems_status_code rtems_partition_get_buf_size(
   rtems_id id,
   rtems_unsigned32 *buffer_size
);




More information about the users mailing list