函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\kexec-bzimage64.c Create Date:2022-07-27 09:36:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:setup_cmdline

函数原型:static int setup_cmdline(struct kimage *image, struct boot_params *params, unsigned long bootparams_load_addr, unsigned long cmdline_offset, char *cmdline, unsigned long cmdline_len)

返回类型:int

参数:

类型参数名称
struct kimage *image
struct boot_params *params
unsigned longbootparams_load_addr
unsigned longcmdline_offset
char *cmdline
unsigned longcmdline_len
72  cmdline_ptr等于paramscmdline_offset
73  len等于0
76  如果 Flags to indicate special processing 恒等于KEXEC_TYPE_CRASH
77  len等于输出格式化串
80  memcpy(cmdline_ptr + len, cmdline, cmdline_len)
81  cmdline_len加等于len
83  cmdline_ptr[cmdline_len - 1]等于'\0'
85  pr_debug("Final command line is: %s\n", cmdline_ptr)
86  cmdline_ptr_phys等于bootparams_load_addrcmdline_offset
87  cmdline_low_32等于cmdline_ptr_phys按位与0xffffffffUL
88  cmdline_ext_32等于cmdline_ptr_phys右移32位
90  命令行指针等于cmdline_low_32
91  如果cmdline_ext_320x0c8 等于cmdline_ext_32
94  返回:0
调用者
名称描述
bzImage64_load