Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:init\main.c Create Date:2022-07-28 13:53:16
Last Modify:2022-05-23 13:07:03 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:We need to store the untouched command line for future reference.* We also need to store the touched command line since the parameter* parsing is performed in place, and we should allow a component to* store reference of name/value for future reference.

Proto:static void __init setup_command_line(char *command_line)

Type:void

Parameter:

TypeParameterName
char *command_line
377  len = strlen - Find the length of a string*@s: The string to be sized + 1
379  Untouched saved command line (eg. for /proc) = memblock_alloc(len, SMP_CACHE_BYTES)
380  If Not Untouched saved command line (eg. for /proc) Then panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
383  Command line for per-initcall parameter parsing = memblock_alloc(len, SMP_CACHE_BYTES)
384  If Not Command line for per-initcall parameter parsing Then panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
387  Command line for parameter parsing = memblock_alloc(len, SMP_CACHE_BYTES)
388  If Not Command line for parameter parsing Then panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
391  strcpy(Untouched saved command line (eg. for /proc) , Untouched command line saved by arch-specific code. )
392  strcpy(Command line for parameter parsing , command_line)
Caller
NameDescribe
start_kernel