| 函数逻辑报告 | 
| Source Code: mm\z3fold.c | Create Date:2022-07-27 18:04:01 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:free_handle
函数原型:static inline void free_handle(unsigned long handle)
返回类型:void
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| unsigned long | handle | 
| 312 | 如果handle按位与1左移PAGE_HEADLESS位则返回 | 
| 319 | slots等于handle_to_slots(handle) | 
| 320 | write_lock( & lock) | 
| 321 | handle等于0 | 
| 322 | write_unlock( & lock) | 
| 327 | foreign_handles自减 | 
| 328 | is_free = true | 
| 331 | read_unlock( & lock) | 
| 332 | 返回 | 
| 334 | 以i小于等于BUDDY_MASK循环 | 
| 340 | read_unlock( & lock) | 
| 342 | 如果is_free则 | 
| 343 | pool等于slots_to_pool(slots) | 
| 345 | kmem_cache_free(c_handle, slots) | 
| 名称 | 描述 | 
|---|---|
| z3fold_free | z3fold_free() - frees the allocation associated with the given handle*@pool: pool in which the allocation resided*@handle: handle associated with the allocation returned by z3fold_alloc()* In the case that the z3fold page in which the allocation resides | 
| z3fold_reclaim_page | z3fold_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* z3fold reclaim is different | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |