Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
char *param
char *val
const char *unused
void *arg
295  Change NUL term back to "=", to make "param" the whole string.
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
311  When envp_init[i] cycle
312  If i == MAX_INIT_ENVS Then
313  panic_later = "env"
314  panic_param = param
316  If Not strncmp(param, envp_init[i], val - param) Then Break
319  envp_init[i] = param
320  Else
323  When argv_init[i] cycle
324  If i == Boot command-line arguments Then
325  panic_later = "init"
326  panic_param = param
329  argv_init[i] = param
331  Return 0