函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Sandy Bridge graphics has trouble with certain ranges, exclude* them from allocation.

函数原型:static void __init trim_snb_memory(void)

返回类型:void

参数:

706  static const __initconst unsigned long bad_pages[] = {0x20050000, 0x20110000, 0x20130000, 0x20138000, 0x40004000, }
715  如果非snb_gfx_workaround_needed()则返回
718  printk(debug-level messages "reserving inaccessible SNB gfx pages\n")
724  准备内存空间
726 i小于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(bad_pages)循环
727  如果准备内存空间printk(warning conditions "failed to reserve 0x%08lx\n", bad_pages[i])
调用者
名称描述
trim_platform_memory_rangesHere we put platform-specific memory range workarounds, i.e.* memory known to be corrupt or otherwise in need to be reserved on* specific platforms.* If this gets used more widely it could use a real dispatch mechanism.