Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\fpu\xstate.c Create Date:2022-07-28 07:50:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static int xfeature_enabled(enum xfeature xfeature)

Type:int

Parameter:

TypeParameterName
enum xfeaturexfeature
239  Return Not Not (Mask of xstate features supported by the CPU and the kernel: & 1UL << xfeature )
Caller
NameDescribe
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.