函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Note that in the future we will likely need a pair of* functions here: one for user xstates and the other for* system xstates. For now, they are the same.

函数原型:static int xfeature_enabled(enum xfeature xfeature)

返回类型:int

参数:

类型参数名称
enum xfeaturexfeature
239  返回:非非Mask of xstate features supported by the CPU and the kernel:按位与1UL左移xfeature位的值
调用者
名称描述
setup_xstate_featuresRecord the offsets and sizes of various xstates contained* in the XSAVE state memory layout.
setup_xstate_compThis function sets up offsets and sizes of all extended states in* xsave area. This supports both standard format and compacted format* of the xsave aread.
print_xstate_offset_sizePrint out xstate component offsets and sizes
do_extra_xstate_size_checksThis essentially double-checks what the cpu told us about* how large the XSAVE buffer needs to be. We are recalculating* it to be safe.
__raw_xsave_addrGiven an xstate feature nr, calculate where in the xsave* buffer the state is. Callers should ensure that the buffer* is valid.