Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:init\do_mounts_md.c Create Date:2022-07-28 13:59:03
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:raid_setup

Proto:static int __init raid_setup(char *str)

Type:int

Parameter:

TypeParameterName
char *str
249  len = strlen - Find the length of a string*@s: The string to be sized + 1
250  pos = 0
252  When pos < len cycle
253  comma = 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
255  If comma Then wlen = comma - str - pos
257  Else wlen = len - 1 - pos
259  If Not strncmp(str, "noautodetect", wlen) Then raid_noautodetect = 1
261  If Not strncmp(str, "autodetect", wlen) Then raid_noautodetect = 0
263  If strncmp(str, "partitionable", wlen) == 0 Then raid_autopart = 1
265  If strncmp(str, "part", wlen) == 0 Then raid_autopart = 1
267  pos += wlen + 1
269  Return 1