函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Given the xsave area and a state inside, this function returns the* address of the state

函数原型:void *get_xsave_addr(struct xregs_state *xsave, int xfeature_nr)

返回类型:void

参数:

类型参数名称
struct xregs_state *xsave
intxfeature_nr state which is defined in xsave.h (e.g. XFEATURE_FP,
842  如果非boot_cpu_has(XSAVE/XRSTOR/XSETBV/XGETBV instructions )则返回: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  如果非xfeatures按位与BIT_ULL( state which is defined in xsave.h (e.g. XFEATURE_FP,)的值则返回:NULL
866  返回:Given an xstate feature nr, calculate where in the xsave* buffer the state is. Callers should ensure that the buffer* is valid.
调用者
名称描述
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