Function report |
Source Code:mm\vmalloc.c |
Create Date:2022-07-28 14:59:31 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:vb_free
Proto:static void vb_free(const void *addr, unsigned long size)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
const void * | addr | |
unsigned long | size |
1666 | BUG_ON(offset_in_page(size)) |
1667 | BUG_ON(size > PAGE_SIZE * 256K with 4K pages ) |
1669 | flush_cache_vunmap((unsignedlong)addr, (unsignedlong)addr + size) |
1671 | order = get_order - Determine the allocation order of a memory size*@size: The size for which to get the order* Determine the allocation order of a particular sized block of memory |
1673 | offset = addr & VMAP_BLOCK_SIZE - 1 |
1682 | vunmap_page_range((unsignedlong)addr, (unsignedlong)addr + size) |
1684 | If For use in fast paths after init_debug_pagealloc() has run, or when a* false negative result is not harmful when called too early. Then flush_tlb_kernel_range((unsignedlong)addr, (unsignedlong)addr + size) |
1691 | dirty_min = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(dirty_min, offset) |
1692 | < dirty range = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(< dirty range , offset + (1UL << order)) |
1695 | If dirty == VMAP_BBMAP_BITS Then |
1699 | Else spin_unlock( & lock) |
Name | Describe |
---|---|
vm_unmap_ram | vm_unmap_ram - unmap linear kernel address space set up by vm_map_ram*@mem: the pointer returned by vm_map_ram*@count: the count passed to that vm_map_ram call (cannot unmap partial) |
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 |