函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\module.c Create Date:2022-07-27 09:39:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:module_alloc

函数原型:void *module_alloc(unsigned long size)

返回类型:void

参数:

类型参数名称
unsigned longsize
72  如果 align the pointer to the (next) page boundary (size)大于MODULES_LEN则返回: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  如果pThese 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则
81  vfree(p)
82  返回:NULL
85  返回:p
调用者
名称描述
alloc_insn_pageMake page to RO mode when allocate it