00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef HMEMPOOL_H
00012 #define HMEMPOOL_H
00013
00014 struct hmempool {
00015 struct hmempool *next;
00016 struct hmempool *prev;
00017 int id;
00018 int base_addr;
00019 int size;
00020 };
00021
00022
00023
00024 void hmempool_insert(int id, int base_addr, int size);
00025 void hmempool_remove(int id);
00026
00027 int hmempool_get_by_id(int id, struct hmempool** pool);
00028 int hmempool_get_by_address(int addr, struct hmempool ** pool);
00029 void hmempool_set(int id, int id_, int base_addr_, int size_);
00030 void hmempool_set_id(int id, int id_);
00031 void hmempool_clear_all();
00032 struct hmempool *hmempool_get_first();
00033
00034 #endif
00035
00036