Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\module.c Create Date:2022-07-28 08:39:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:module_alloc

Proto:void *module_alloc(unsigned long size)

Type:void

Parameter:

TypeParameterName
unsigned longsize
72  If align the pointer to the (next) page boundary (size) > MODULES_LEN Then Return NULL
75  p = __vmalloc_node_range(size, MODULE_ALIGN, MODULES_VADDR + get_module_load_offset(), MODULES_END, GFP_KERNEL, PAGE_KERNEL, 0, NUMA_NO_NODE, __builtin_return_address(0))
80  If p && These functions provide a special case to support backing module* allocations with real shadow memory. With KASAN vmalloc, the special* case is unnecessary, as the work is handled in the generic case. < 0 Then
81  vfree(p)
82  Return NULL
85  Return p