| Function report | 
| Source Code: mm\z3fold.c | Create Date:2022-07-28 16:29:01 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:free_handle
Proto:static inline void free_handle(unsigned long handle)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| unsigned long | handle | 
| 312 | If handle & 1 << PAGE_HEADLESS Then Return | 
| 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 | Return | 
| 334 | When i <= BUDDY_MASK cycle | 
| 336 | is_free = false | 
| 337 | Break | 
| 340 | read_unlock( & lock) | 
| 342 | If is_free Then | 
| 343 | pool = slots_to_pool(slots) | 
| 345 | kmem_cache_free(c_handle, slots) | 
| Name | Describe | 
|---|---|
| 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 | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |