| Function report | 
| Source Code: lib\genalloc.c | Create Date:2022-07-28 06:56:58 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:gen_pool_free_owner - free allocated special memory back to the pool*@pool: pool to free to*@addr: starting address of memory to free back to pool*@size: size in bytes of memory to free*@owner: private data stashed at gen_pool_add() time* Free previously
Proto:void gen_pool_free_owner(struct gen_pool *pool, unsigned long addr, size_t size, void **owner)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct gen_pool * | pool | |
| unsigned long | addr | |
| size_t | size | |
| void ** | owner | 
| 502 | If addr >= start address of memory chunk && addr <= d address of memory chunk (inclusive) Then | 
| 503 | BUG_ON(addr + size - 1 > d address of memory chunk (inclusive) ) | 
| 504 | start_bit = addr - start address of memory chunk >> order | 
| 508 | atomic_long_add(size, & avail) | 
| 509 | If owner Then owner = private data to retrieve at alloc time | 
| 512 | Return | 
| 516 | BUG() | 
| Name | Describe | 
|---|---|
| gen_pool_free | 
| 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 |