函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ib_prctl_set

函数原型:static int ib_prctl_set(struct task_struct *task, unsigned long ctrl)

返回类型:int

参数:

类型参数名称
struct task_struct *task
unsigned longctrl
1159  :ctrl恒等于PR_SPEC_ENABLE
1160  如果spectre_v2_user恒等于SPECTRE_V2_USER_NONE则返回:0
1166  如果spectre_v2_user恒等于SPECTRE_V2_USER_STRICTspectre_v2_user恒等于SPECTRE_V2_USER_STRICT_PREFERRED则返回:负EPERM
1169  task_clear_spec_ib_disable(task)
1170  task_update_spec_tif(task)
1171  退出
1172  :ctrl恒等于PR_SPEC_DISABLE
1173  :ctrl恒等于PR_SPEC_FORCE_DISABLE
1178  如果spectre_v2_user恒等于SPECTRE_V2_USER_NONE则返回:负EPERM
1180  如果spectre_v2_user恒等于SPECTRE_V2_USER_STRICTspectre_v2_user恒等于SPECTRE_V2_USER_STRICT_PREFERRED则返回:0
1183  task_set_spec_ib_disable(task)
1184  如果ctrl恒等于PR_SPEC_FORCE_DISABLEtask_set_spec_ib_force_disable(task)
1186  task_update_spec_tif(task)
1187  退出
1188  默认
1189  返回:负ERANGE
1191  返回:0
调用者
名称描述
arch_prctl_spec_ctrl_set