内存池的处理

发布时间 2023-12-13 17:13:22作者: 学好声韵辩四声

pool->sector->blocks

pool is organized as sectors , and new sectors ared added when there is more blocks needed.


mem_block_creat_pool(zg, blk_size , no_of_block,no_of_sectors)

点击查看代码
no_of_blocks :no_of_blocks per sector
no_of_sectors:max nomber _of_sectors per pool, if 0, the pool will creat as many of sectors as the system could afford .

return : pointer to a pool management instance
mem_block_creat_pool(zg, blk_size , no_of_blocks, no_of_sectors)
{


}