函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:We append the 'struct fpu' to the task_struct:

函数原型:static void __init fpu__init_task_struct_size(void)

返回类型:void

参数:

160  task_size等于sizeof(structtask_struct)
166  task_size减等于state的长度
172  task_size加等于Size of the FPU context state. All tasks in the system use the* same context size, regardless of what portion they use.* This is inherent to the XSAVE architecture which puts all state* components into a single, continuous memory block:
181  Enforce that 'MEMBER' is the last field of 'TYPE'.* Align the computed size with alignment of the TYPE,* because that's how C aligns structs.(structfpu, XZ decoder state )
182  Enforce that 'MEMBER' is the last field of 'TYPE'.* Align the computed size with alignment of the TYPE,* because that's how C aligns structs.(structthread_struct, fpu)
183  Enforce that 'MEMBER' is the last field of 'TYPE'.* Align the computed size with alignment of the TYPE,* because that's how C aligns structs.(structtask_struct, thread)
185  arch_task_struct_size等于task_size
调用者
名称描述
fpu__init_systemCalled on the boot CPU once per system bootup, to set up the initial* FPU state that is later cloned into all processes: