函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:spectre_v2_parse_user_cmdline

函数原型:static enum spectre_v2_user_cmd __init spectre_v2_parse_user_cmdline(enum spectre_v2_mitigation_cmd v2_cmd)

返回类型:enum spectre_v2_user_cmd

参数:

类型参数名称
enum spectre_v2_mitigation_cmdv2_cmd
577  :v2_cmd恒等于SPECTRE_V2_CMD_NONE
578  返回:SPECTRE_V2_USER_CMD_NONE
579  :v2_cmd恒等于SPECTRE_V2_CMD_FORCE
580  返回:SPECTRE_V2_USER_CMD_FORCE
581  默认
582  退出
585  ret等于命令行查找参数
587  如果ret小于0则返回:SPECTRE_V2_USER_CMD_AUTO
590 i小于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(v2_user_options)循环
591  如果match_option(arg, ret, option)则
594  返回:cmd
598  打印错误信息("Unknown user space protection option (%s). Switching to AUTO select\n", arg)
599  返回:SPECTRE_V2_USER_CMD_AUTO
调用者
名称描述
spectre_v2_user_select_mitigation