函数逻辑报告 |
Source Code:mm\zbud.c |
Create Date:2022-07-27 18:00:34 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Encodes the handle of a particular buddy within a zbud page* Pool lock should be held as this function accesses first|last_chunks
函数原型:static unsigned long encode_handle(struct zbud_header *zhdr, enum buddy bud)
返回类型:unsigned long
参数:
类型 | 参数 | 名称 |
---|---|---|
struct zbud_header * | zhdr | |
enum buddy | bud |
271 | 如果bud恒等于FIRST则handle加等于ZHDR_SIZE_ALIGNED |
274 | 否则handle加等于PAGE_SIZE减last_chunks左移CHUNK_SHIFT位的值 |
276 | 返回:handle |
名称 | 描述 |
---|---|
zbud_alloc | zbud_alloc() - allocates a region of a given size*@pool: zbud pool from which to allocate*@size: size in bytes of the desired allocation*@gfp: gfp flags used if the pool needs to grow*@handle: handle of the new allocation* This function will attempt to |
zbud_reclaim_page | zbud_reclaim_page() - evicts allocations from a pool page and frees it*@pool: pool from which a page will attempt to be evicted*@retries: number of pages on the LRU list for which eviction will* be attempted before failing* zbud reclaim is different from |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |