From 9b3f187a02049d81a63bb85497c5a4ebb9d37a97 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 29 Nov 2004 22:45:43 +0000 Subject: 2004-11-29 Joel Sherrill * libcsupport/src/mallocfreespace.c, rtems/Makefile.am, rtems/include/rtems/rtems/region.h, score/Makefile.am, score/include/rtems/score/heap.h, score/src/heapgetinfo.c: Add capability to return information about just the free blocks in a region or heap. Also changed the semantics of free space available to be the largest block of memory that can be allocated. * rtems/src/regiongetfreeinfo.c, score/src/heapgetfreeinfo.c: New files. : score/include/rtems/score/object.h, score/src/objectinitializeinformation.c: Remove warning. --- cpukit/rtems/include/rtems/rtems/region.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'cpukit/rtems/include/rtems') diff --git a/cpukit/rtems/include/rtems/rtems/region.h b/cpukit/rtems/include/rtems/rtems/region.h index 259a0eb75c..acd333ec6d 100644 --- a/cpukit/rtems/include/rtems/rtems/region.h +++ b/cpukit/rtems/include/rtems/rtems/region.h @@ -134,7 +134,7 @@ rtems_status_code rtems_region_ident( ); /* - * rtems_region_ident + * rtems_region_get_information * * DESCRIPTION: * @@ -148,6 +148,21 @@ rtems_status_code rtems_region_get_information( Heap_Information_block *the_info ); +/* + * rtems_region_get_free_information + * + * DESCRIPTION: + * + * This routine implements the rtems_region_get_free_information directive. + * This directive returns information about the free blocks in the + * heap associated with this region. + */ + +rtems_status_code rtems_region_get_free_information( + Objects_Id id, + Heap_Information_block *the_info +); + /* * rtems_region_delete * -- cgit v1.2.3