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:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:xfeature_uncompacted_offset

Proto:static int xfeature_uncompacted_offset(int xfeature_nr)

Type:int

Parameter:

TypeParameterName
intxfeature_nr
445  If Supervisor features & BIT_ULL(xfeature_nr) Then
446  WARN_ONCE(1, "No fixed offset for xstate %d\n", xfeature_nr)
447  Return -1
450  This check is important because it is easy to get XSTATE_** confused with XSTATE_BIT_*.(xfeature_nr)
451  cpuid_count(XSTATE_CPUID, xfeature_nr, & eax, & ebx, & ecx, & edx)
452  Return ebx
Caller
NameDescribe
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.