函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Signal frame handlers.

函数原型:static inline int save_fsave_header(struct task_struct *tsk, void __user *buf)

返回类型:int

参数:

类型参数名称
struct task_struct *tsk
void __user *buf
60  如果use_fxsr()则
61  xsave等于xsave
63  __userfp等于buf
65  Use fpregs_lock() while editing CPU's FPU registers or fpu->state.* A context switch will (and softirq might) save CPU's FPU registers to* fpu->state and set TIF_NEED_FPU_LOAD leaving CPU's FPU registers in* a random state.
66  如果非test_thread_flag(load FPU on return to userspace )则copy_fxregs_to_kernel( & Floating point and extended processor state )
68  fpregs_unlock()
70  FXSR floating point environment conversions.
72  如果__copy_to_user(buf, & env, env的长度)或__put_user - Write a simple value into user space, with less checking(Status Word , & status)或__put_user - Write a simple value into user space, with less checking(X86_FXSR_MAGIC, & 0xffff: regular FPU data only )则返回:负1
76  否则
77  __userfp等于buf
79  如果__get_user - Get a simple variable from user space, with less checking(swd, & FPU Status Word )或__put_user - Write a simple value into user space, with less checking(swd, & Software status information [not touched by FSAVE]: )则返回:负1
83  返回:0
调用者
名称描述
copy_fpstate_to_sigframeSave the fpu, extended register state to the user signal frame.* 'buf_fx' is the 64-byte aligned pointer at which the [f|fx|x]save* state is copied.* 'buf' points to the 'buf_fx' or to the fsave header followed by 'buf_fx'.