函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:init\do_mounts_md.c Create Date:2022-07-27 15:21:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Parse the command-line parameters given our kernel, but do not* actually try to invoke the MD device now; that is handled by* md_setup_drive after the low-level disk drivers have initialised

函数原型:static int __init md_setup(char *str)

返回类型:int

参数:

类型参数名称
char *str
56  partitioned等于0
57  pername等于""
61  如果str恒等于'd'则
62  partitioned等于1
63  str自加
65  如果get_option - Parse integer from an option string*@str: option string*@pint: (output) integer value parsed from @str* Read an int from an option string; if available accept a subsequent* comma as well不等于2则
66  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
67  返回:0
69  str1等于str
70 ent小于md_setup_ents循环如果minor恒等于minorpartitioned恒等于partitioned
73  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
75  退出
77  如果ent大于等于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(md_setup_args)则
78  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
79  返回:0
81  如果ent大于等于md_setup_entsmd_setup_ents自加
84  :get_option - Parse integer from an option string*@str: option string*@pint: (output) integer value parsed from @str* Read an int from an option string; if available accept a subsequent* comma as well恒等于2
85  如果level恒等于0或level恒等于LEVEL_LINEAR
91  level等于level
92  chunk等于1左移factor加12位
93  如果level恒等于LEVEL_LINEARpername等于"linear"
95  否则pername等于"raid0"
97  退出
100  :get_option - Parse integer from an option string*@str: option string*@pint: (output) integer value parsed from @str* Read an int from an option string; if available accept a subsequent* comma as well恒等于1
101  str等于str1
103  :get_option - Parse integer from an option string*@str: option string*@pint: (output) integer value parsed from @str* Read an int from an option string; if available accept a subsequent* comma as well恒等于0
104  level等于we need a value for 'no level specified' and 0* means 'raid0', so we need something else. This is* for internal use only
105  pername等于"super-block"
108  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
110  device_names等于str
111  partitioned等于partitioned
112  minor等于minor
114  返回:1