Function report |
Source Code:init\main.c |
Create Date:2022-07-28 13:53:11 |
| Last Modify:2022-05-23 13:07:03 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Unknown boot options get handed to init, unless they look like* unused parameters (modprobe will find them in /proc/cmdline).
Proto:static int __init unknown_bootoption(char *param, char *val, const char *unused, void *arg)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| char * | param | |
| char * | val | |
| const char * | unused | |
| void * | arg |
| 298 | If obsolete_checksetup(param) Then Return 0 |
| 302 | If strchr(param, '.') && ( Not val || strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for < val ) Then Return 0 |
| 305 | If panic_later Then Return 0 |
| 308 | If val Then |
| 312 | If i == MAX_INIT_ENVS Then |
| 313 | panic_later = "env" |
| 314 | panic_param = param |
| 320 | Else |
| 324 | If i == Boot command-line arguments Then |
| 325 | panic_later = "init" |
| 326 | panic_param = param |
| 331 | Return 0 |
| 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 |