Changeset 252565f in rtems


Ignore:
Timestamp:
Oct 18, 2000, 2:57:12 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
b541e1f
Parents:
aac7fdd2
Message:

2000-10-18 Nick Simon <Nick.SIMON@…>

  • src/heapgetinfo.c, include/rtems/score/heap.h, src/Makefile.am: Added _Heap_Get_information() and information control block.
  • src/heapgetinfo.c: New file.
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/ChangeLog

    raac7fdd2 r252565f  
     1
     22000-10-18      Nick Simon <Nick.SIMON@syntegra.bt.co.uk>
     3
     4        * src/heapgetinfo.c, include/rtems/score/heap.h, src/Makefile.am:
     5        Added _Heap_Get_information() and information control block.
     6        * src/heapgetinfo.c: New file.
    17
    282000-09-25      Joel Sherrill <joel@OARcorp.com>
  • c/src/exec/score/include/rtems/score/heap.h

    raac7fdd2 r252565f  
    3535  HEAP_EXTEND_NOT_IMPLEMENTED
    3636}  Heap_Extend_status;
     37
     38/*
     39 *  Status codes for _Heap_Get_information
     40 */
     41
     42typedef enum {
     43    HEAP_GET_INFORMATION_SUCCESSFUL = 0,
     44    HEAP_GET_INFORMATION_SYSTEM_STATE_ERROR,
     45    HEAP_GET_INFORMATION_BLOCK_ERROR
     46}  Heap_Get_information_status;
     47       
     48/*
     49 *  Information block returned by _Heap_Get_information
     50 */
     51
     52typedef struct {
     53  unsigned32   free_blocks;
     54  unsigned32   free_size;
     55  unsigned32   used_blocks;
     56  unsigned32   used_size;
     57} Heap_Information_block;
    3758
    3859/*
     
    214235);
    215236
     237/*PAGE
     238 *
     239 *  _Heap_Get_information
     240 *
     241 *  This kernel routine walks the heap and tots up the free and allocated
     242 *  sizes.  Derived from _Heap_Walk.
     243 *
     244 *  Input parameters:
     245 *    the_heap  - pointer to heap header
     246 *    the_info  - pointer to information block
     247 *
     248 *  Output parameters:
     249 *    *the_info - status information
     250 *    return 0=success, otherwise heap is corrupt.
     251 */
     252
     253
     254Heap_Get_information_status _Heap_Get_information(
     255  Heap_Control            *the_heap,
     256  Heap_Information_block  *the_info
     257);
     258
     259
    216260#ifndef __RTEMS_APPLICATION__
    217261#include <rtems/score/heap.inl>
  • c/src/exec/score/src/Makefile.am

    raac7fdd2 r252565f  
    2323
    2424HEAP_C_FILES = heap.c heapallocate.c heapextend.c heapfree.c \
    25     heapsizeofuserarea.c heapwalk.c
     25    heapsizeofuserarea.c heapwalk.c heapgetinfo.c
    2626
    2727OBJECT_C_FILES = object.c objectallocate.c objectallocatebyindex.c \
  • cpukit/score/ChangeLog

    raac7fdd2 r252565f  
     1
     22000-10-18      Nick Simon <Nick.SIMON@syntegra.bt.co.uk>
     3
     4        * src/heapgetinfo.c, include/rtems/score/heap.h, src/Makefile.am:
     5        Added _Heap_Get_information() and information control block.
     6        * src/heapgetinfo.c: New file.
    17
    282000-09-25      Joel Sherrill <joel@OARcorp.com>
  • cpukit/score/include/rtems/score/heap.h

    raac7fdd2 r252565f  
    3535  HEAP_EXTEND_NOT_IMPLEMENTED
    3636}  Heap_Extend_status;
     37
     38/*
     39 *  Status codes for _Heap_Get_information
     40 */
     41
     42typedef enum {
     43    HEAP_GET_INFORMATION_SUCCESSFUL = 0,
     44    HEAP_GET_INFORMATION_SYSTEM_STATE_ERROR,
     45    HEAP_GET_INFORMATION_BLOCK_ERROR
     46}  Heap_Get_information_status;
     47       
     48/*
     49 *  Information block returned by _Heap_Get_information
     50 */
     51
     52typedef struct {
     53  unsigned32   free_blocks;
     54  unsigned32   free_size;
     55  unsigned32   used_blocks;
     56  unsigned32   used_size;
     57} Heap_Information_block;
    3758
    3859/*
     
    214235);
    215236
     237/*PAGE
     238 *
     239 *  _Heap_Get_information
     240 *
     241 *  This kernel routine walks the heap and tots up the free and allocated
     242 *  sizes.  Derived from _Heap_Walk.
     243 *
     244 *  Input parameters:
     245 *    the_heap  - pointer to heap header
     246 *    the_info  - pointer to information block
     247 *
     248 *  Output parameters:
     249 *    *the_info - status information
     250 *    return 0=success, otherwise heap is corrupt.
     251 */
     252
     253
     254Heap_Get_information_status _Heap_Get_information(
     255  Heap_Control            *the_heap,
     256  Heap_Information_block  *the_info
     257);
     258
     259
    216260#ifndef __RTEMS_APPLICATION__
    217261#include <rtems/score/heap.inl>
  • cpukit/score/src/Makefile.am

    raac7fdd2 r252565f  
    2323
    2424HEAP_C_FILES = heap.c heapallocate.c heapextend.c heapfree.c \
    25     heapsizeofuserarea.c heapwalk.c
     25    heapsizeofuserarea.c heapwalk.c heapgetinfo.c
    2626
    2727OBJECT_C_FILES = object.c objectallocate.c objectallocatebyindex.c \
Note: See TracChangeset for help on using the changeset viewer.