Function report |
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 activity | Download SCCT | Chinese |
Name:reboot_setup
Proto:static int __init reboot_setup(char *str)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
char * | str |
523 | cycle |
534 | mode = panic_reboot_mode |
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' |
566 | Else mode = REBOOT_SOFT |
568 | Break |
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 |
591 | Else Break |
594 | Return 1 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |