函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\tlbflush.h Create Date:2022-07-27 06:54:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:build_cr3

函数原型:static inline unsigned long build_cr3(pgd_t *pgd, u16 asid)

返回类型:unsigned long

参数:

类型参数名称
pgd_t *pgd
u16asid
123  如果static_cpu_has(Process Context Identifiers )则
124  返回:__sme_pa(pgd)按位或Given @asid, compute kPCID
125  否则
126  VM_WARN_ON_ONCE(asid != 0)
127  返回:__sme_pa(pgd)
调用者
名称描述
__get_current_cr3_fastThis can be used from process context to figure out what the value of* CR3 is without needing to do a (slow) __read_cr3().* It's intended to be used for code like KVM that sneakily changes CR3* and needs to restore it. It needs to be used very carefully.