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

Name:Given the xsave area and a state inside, this function returns the* address of the state

Proto:void *get_xsave_addr(struct xregs_state *xsave, int xfeature_nr)

Type:void

Parameter:

TypeParameterName
struct xregs_state *xsave
intxfeature_nr state which is defined in xsave.h (e.g. XFEATURE_FP,
842  If Not boot_cpu_has(XSAVE/XRSTOR/XSETBV/XGETBV instructions ) Then Return NULL
850  WARN_ONCE(!(Mask of xstate features supported by the CPU and the kernel: & BIT_ULL( state which is defined in xsave.h (e.g. XFEATURE_FP,)), "get of unsupported state")
863  If Not (xfeatures & BIT_ULL( state which is defined in xsave.h (e.g. XFEATURE_FP,)) Then Return NULL
866  Return Given an xstate feature nr, calculate where in the xsave* buffer the state is. Callers should ensure that the buffer* is valid.
Caller
NameDescribe
get_xsave_field_ptrThis wraps up the common operations that need to occur when retrieving* data from xsave state. It first ensures that the current task was* using the FPU and retrieves the data in to a buffer. It then calculates
setup_pku