| Function report | 
| Source Code: mm\zbud.c | Create Date:2022-07-28 16:25:40 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Encodes the handle of a particular buddy within a zbud page* Pool lock should be held as this function accesses first|last_chunks
Proto:static unsigned long encode_handle(struct zbud_header *zhdr, enum buddy bud)
Type:unsigned long
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct zbud_header * | zhdr | |
| enum buddy | bud | 
| 271 | If bud == FIRST Then handle += ZHDR_SIZE_ALIGNED | 
| 274 | Else handle += PAGE_SIZE - (last_chunks << CHUNK_SHIFT) | 
| 276 | Return handle | 
| Name | Describe | 
|---|---|
| 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 | 
| 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 |