函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:init\main.c Create Date:2022-07-27 15:15:23
Last Modify:2022-05-23 13:07:03 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Unknown boot options get handed to init, unless they look like* unused parameters (modprobe will find them in /proc/cmdline).

函数原型:static int __init unknown_bootoption(char *param, char *val, const char *unused, void *arg)

返回类型:int

参数:

类型参数名称
char *param
char *val
const char *unused
void *arg
295  Change NUL term back to "=", to make "param" the whole string.
298  如果obsolete_checksetup(param)则返回:0
302  如果strchr(param, '.')且非valstrchr - 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的值则返回:0
305  如果panic_later则返回:0
308  如果val
311 envp_init[i]循环
312  如果i恒等于MAX_INIT_ENVS
313  panic_later等于"env"
314  panic_param等于param
319  envp_init[i]等于param
320  否则
323 argv_init[i]循环
324  如果i恒等于Boot command-line arguments
325  panic_later等于"init"
326  panic_param等于param
329  argv_init[i]等于param
331  返回:0