Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\reboot.c Create Date:2022-07-28 09:33:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:reboot_setup

Proto:static int __init reboot_setup(char *str)

Type:int

Parameter:

TypeParameterName
char *str
523  cycle
531  This variable is used privately to keep track of whether or not* reboot_type is still set to its default value (i.e., reboot= hasn't* been set on the command line). This is needed so that we can* suppress DMI scanning for reboot quirks. Without it, it's = 0
533  If Not strncmp(str, "panic_", 6) Then
535  str += 6
536  Else
537  mode = reboot_mode
541  Case str == 'w'
542  mode = REBOOT_WARM
543  Break
545  Case str == 'c'
546  mode = REBOOT_COLD
547  Break
549  Case str == 'h'
550  mode = REBOOT_HARD
551  Break
553  Case str == 's'
570  Case str == 'g'
571  mode = REBOOT_GPIO
572  Break
574  Case str == 'b'
575  Case str == 'a'
576  Case str == 'k'
577  Case str == 't'
578  Case str == 'e'
579  Case str == 'p'
580  reboot_type = * str
581  Break
583  Case str == 'f'
584  reboot_force = 1
585  Break
588  str = strchr(str, ',')
589  If str Then str++
591  Else Break
594  Return 1