7 #ifndef UBICLIB_HEAP_H_
8 #define UBICLIB_HEAP_H_
23 #include <ubinos_config.h>
27 #define HEAP_ERR__POLLUTED_TOP -21
29 #define HEAP_ERR__POLLUTED_BOTTOM -22
31 #define HEAP_ERR__POLLUTED_HEADER -23
33 #define HEAP_ERR__UNSUPPORTED -24
37 #define HEAP_FLAG_NO__TFL_PERSISTENT 0
39 #define HEAP_FLAG_NO__TFL_TEMP 1
41 #define HEAP_FLAG_NO__TFL_RESIZABLE 2
126 int algorithm0,
int locktype0,
unsigned int m0,
unsigned int fblcount0,
127 int algorithm1,
int locktype1,
unsigned int m1,
unsigned int fblcount1);
539 unsigned int * nsize_p,
unsigned int * rsize_p);
577 unsigned int * nsize_p,
unsigned int * rsize_p);
615 unsigned int * ncount_p,
unsigned int * rcount_p);
653 unsigned int * ncount_p,
unsigned int * rcount_p);
691 unsigned int * nsize_p,
unsigned int * rsize_p);
729 unsigned int * nsize_p,
unsigned int * rsize_p);
767 unsigned int * ncount_p,
unsigned int * rcount_p);
int heap_get_flag(heap_pt heap, void *ptr, int flag_no)
int heap_create(heap_pt *heap_p, unsigned int addr, unsigned int size)
void * heap_resize(heap_pt heap, void *ptr, unsigned int size)
int heap_getsize(heap_pt heap, unsigned int *size_p)
int heap_checkblockboundaryall(heap_pt heap)
int heap_get_block_overhead(heap_pt heap)
int heap_set_flag(heap_pt heap, void *ptr, int flag_no, int flag)
int heap_getallocatedcount_ext(heap_pt heap, unsigned int *count_p, unsigned int *ncount_p, unsigned int *rcount_p)
int heap_getblockoverhead(heap_pt heap, unsigned int *overhead_p)
void * heap_malloc(heap_pt heap, unsigned int size, int dir)
int heap_printheapinfo(heap_pt heap)
int heap_getallocatedcount(heap_pt heap, unsigned int *count_p)
unsigned int heap_wbuddy_calc_fblcount(unsigned int size, unsigned int m)
unsigned int heap_pgroup_calc_fblcount(unsigned int size, unsigned int m)
int heap_create_ext(heap_pt *heap_p, unsigned int addr, unsigned int size, int algorithm0, int locktype0, unsigned int m0, unsigned int fblcount0, int algorithm1, int locktype1, unsigned int m1, unsigned int fblcount1)
void * heap_get_next_allocated_block(heap_pt heap, void *ptr)
_heap_tip_t * heap_pt
Definition: heap.h:53
int heap_getallocatedcountmax(heap_pt heap, unsigned int *count_p)
void * heap_get_last_allocated_block(heap_pt heap, int dir)
int heap_getallocatedsize_ext(heap_pt heap, unsigned int *size_p, unsigned int *nsize_p, unsigned int *rsize_p)
int heap_free(heap_pt heap, void *ptr)
int heap_getexpandablesize(heap_pt heap, unsigned int *size_p)
int heap_getfreeblockcount_ext(heap_pt heap, unsigned int *count_p, unsigned int *ncount_p, unsigned int *rcount_p)
unsigned int heap_wbuddy_calc_fblcount_raw(unsigned int size, unsigned int m)
int heap_delete(heap_pt *heap_p)
unsigned int heap_group_calc_fblcount_raw(unsigned int size, unsigned int m)
void * heap_get_addr(heap_pt heap)
struct __heap_tip_t _heap_tip_t
int heap_getallocatedsizemax(heap_pt heap, unsigned int *size_p)
int heap_getallocatedsizemax_ext(heap_pt heap, unsigned int *size_p, unsigned int *nsize_p, unsigned int *rsize_p)
int heap_getallocatedsize(heap_pt heap, unsigned int *size_p)
int heap_getblocksize(heap_pt heap, void *ptr, unsigned int *size_p)
void * heap_get_first_allocated_block(heap_pt heap, int dir)
int heap_power_off(heap_pt heap, int dir)
int heap_getrequestedsizemax_ext(heap_pt heap, unsigned int *size_p, unsigned int *nsize_p, unsigned int *rsize_p)
int heap_getfreeblockcount(heap_pt heap, unsigned int *count_p)
int heap_getrequestedsizemax(heap_pt heap, unsigned int *size_p)
int heap_getblock_allocated_size(heap_pt heap, void *ptr, unsigned int *size_p)
int heap_get_block_allocated_size_min(heap_pt heap)
unsigned int heap_group_calc_fblcount(unsigned int size, unsigned int m)
void * heap_get_prev_allocated_block(heap_pt heap, void *ptr)
int heap_getallocatedcountmax_ext(heap_pt heap, unsigned int *count_p, unsigned int *ncount_p, unsigned int *rcount_p)
int heap_checkblockboundary(heap_pt heap, void *ptr)
int heap_getrequestedsize_ext(heap_pt heap, unsigned int *size_p, unsigned int *nsize_p, unsigned int *rsize_p)
int heap_power_on(heap_pt heap, int dir)
void * heap_get_end(heap_pt heap)
int ubiclib_heap_comp_init_reent(void)
int heap_getrequestedsize(heap_pt heap, unsigned int *size_p)
int ubiclib_heap_comp_init(void)
int heap_getblock_usable_size(heap_pt heap, void *ptr, unsigned int *size_p)
unsigned int heap_pgroup_calc_fblcount_raw(unsigned int size, unsigned int m)
unsigned int reserved2
Definition: heap.h:49
unsigned int type
Definition: heap.h:46
unsigned int reserved
Definition: heap.h:48
unsigned int valid
Definition: heap.h:47