Function report |
Source Code:mm\vmalloc.c |
Create Date:2022-07-28 15:00:20 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__vmalloc_node_range - allocate virtually contiguous memory*@size: allocation size*@align: desired alignment*@start: vm area range start*@end: vm area range end*@gfp_mask: flags for the page level allocator*@prot: protection mask for the allocated pages
Proto:void *__vmalloc_node_range(unsigned long size, unsigned long align, unsigned long start, unsigned long end, gfp_t gfp_mask, pgprot_t prot, unsigned long vm_flags, int node, const void *caller)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned long | size | |
unsigned long | align | |
unsigned long | start | |
unsigned long | end | |
gfp_t | gfp_mask | |
pgprot_t | prot | |
unsigned long | vm_flags | |
int | node | |
const void * | caller |
2538 | If Not size || size >> PAGE_SHIFT determines the page size > totalram_pages() Then Go to fail |
2541 | area = __get_vm_area_node(real_size, align, vmalloc() | vm_struct is not fully initialized | vm_flags, start, end, node, gfp_mask, caller) |
2547 | If Not addr Then Return NULL |
2557 | kmemleak_vmalloc(area, size, gfp_mask) |
2559 | Return addr |
2561 | fail : |
2562 | warn_alloc(gfp_mask, NULL, "vmalloc: allocation failure: %lu bytes", real_size) |
2564 | Return NULL |
Name | Describe |
---|---|
align_shift_alloc_test | This test case is supposed to be failed. |
fix_align_alloc_test | |
__vmalloc_node | |
vmalloc_user | vmalloc_user - allocate zeroed virtually contiguous memory for userspace*@size: allocation size* The resulting memory area is zeroed so it can be mapped to userspace* without leaking data.* Return: pointer to the allocated memory or %NULL on error |
vmalloc_user_node_flags | vmalloc_user_node_flags - allocate memory for userspace on a specific node*@size: allocation size*@node: numa node*@flags: flags for the page level allocator* The resulting memory area is zeroed so it can be mapped to userspace* without leaking data |
vmalloc_exec | vmalloc_exec - allocate virtually contiguous, executable memory*@size: allocation size* Kernel-internal function to allocate enough pages to cover @size* the page level allocator and map them into contiguous and* executable kernel virtual space |
vmalloc_32_user | vmalloc_32_user - allocate zeroed virtually contiguous 32bit memory*@size: allocation size* The resulting memory area is 32bit addressable and zeroed so it can be* mapped to userspace without leaking data |
kasan_module_alloc | |
kasan_mem_notifier | |
random_size_align_alloc_test |
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 |