Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\bugs.c Create Date:2022-07-28 07:56:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:spectre_v2_parse_user_cmdline

Proto:static enum spectre_v2_user_cmd __init spectre_v2_parse_user_cmdline(enum spectre_v2_mitigation_cmd v2_cmd)

Type:enum spectre_v2_user_cmd

Parameter:

TypeParameterName
enum spectre_v2_mitigation_cmdv2_cmd
577  Case v2_cmd == SPECTRE_V2_CMD_NONE
578  Return SPECTRE_V2_USER_CMD_NONE
579  Case v2_cmd == SPECTRE_V2_CMD_FORCE
580  Return SPECTRE_V2_USER_CMD_FORCE
581  Default
582  Break
585  ret = cmdline_find_option(boot_command_line, "spectre_v2_user", arg, size of arg )
587  If ret < 0 Then Return SPECTRE_V2_USER_CMD_AUTO
590  When i < ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(v2_user_options) cycle
591  If match_option(arg, ret, option) Then
594  Return cmd
598  pr_err("Unknown user space protection option (%s). Switching to AUTO select\n", arg)
599  Return SPECTRE_V2_USER_CMD_AUTO
Caller
NameDescribe
spectre_v2_user_select_mitigation