rh_info_t
extern rh_info_t *rh_create(unsigned int alignment);
extern void rh_destroy(rh_info_t * info);
extern void rh_init(rh_info_t * info, unsigned int alignment, int max_blocks,
extern int rh_attach_region(rh_info_t * info, unsigned long start, int size);
extern unsigned long rh_detach_region(rh_info_t * info, unsigned long start, int size);
extern unsigned long rh_alloc_align(rh_info_t * info, int size, int alignment,
extern unsigned long rh_alloc(rh_info_t * info, int size, const char *owner);
extern unsigned long rh_alloc_fixed(rh_info_t * info, unsigned long start, int size,
extern int rh_free(rh_info_t * info, unsigned long start);
extern int rh_get_stats(rh_info_t * info, int what, int max_stats,
extern void rh_dump(rh_info_t * info);
void rh_dump_blk(rh_info_t *info, rh_block_t *blk);
extern int rh_set_owner(rh_info_t * info, unsigned long start, const char *owner);
static int assure_empty(rh_info_t * info, int slots)
static rh_block_t *get_slot(rh_info_t * info)
static inline void release_slot(rh_info_t * info, rh_block_t * blk)
static void attach_free_block(rh_info_t * info, rh_block_t * blkn)
static void attach_taken_block(rh_info_t * info, rh_block_t * blkn)
rh_info_t *rh_create(unsigned int alignment)
rh_info_t *info;
void rh_destroy(rh_info_t * info)
void rh_init(rh_info_t * info, unsigned int alignment, int max_blocks,
int rh_attach_region(rh_info_t * info, unsigned long start, int size)
unsigned long rh_detach_region(rh_info_t * info, unsigned long start, int size)
unsigned long rh_alloc_align(rh_info_t * info, int size, int alignment, const char *owner)
static int grow(rh_info_t * info, int max_blocks)
unsigned long rh_alloc(rh_info_t * info, int size, const char *owner)
unsigned long rh_alloc_fixed(rh_info_t * info, unsigned long start, int size, const char *owner)
int rh_free(rh_info_t * info, unsigned long start)
int rh_get_stats(rh_info_t * info, int what, int max_stats, rh_stats_t * stats)
int rh_set_owner(rh_info_t * info, unsigned long start, const char *owner)
void rh_dump(rh_info_t * info)
void rh_dump_blk(rh_info_t * info, rh_block_t * blk)
rh_info_t *rh;