函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:This returns the bottom address of the espfix stack for a specific CPU.* The math allows for a non-power-of-two ESPFIX_STACK_SIZE, in which case* we have to account for some amount of padding at the end of each page.

函数原型:static inline unsigned long espfix_base_addr(unsigned int cpu)

返回类型:unsigned long

参数:

类型参数名称
unsigned intcpu
80  page等于cpuESPFIX_STACKS_PER_PAGE按位异或page_random
81  slot等于cpuslot_random的和取模ESPFIX_STACKS_PER_PAGE
82  addr等于page左移PAGE_SHIFT determines the page size 位的值加slotNote: we only need 6*8 = 48 bytes for the espfix stack, but round* it up to a cache line to avoid unnecessary sharing.
83  addr等于addr按位与0xffffUL按位或addr按位与0xffffUL的反的值左移16位
84  addr加等于ESPFIX_BASE_ADDR
85  返回:addr
调用者
名称描述
init_espfix_ap