Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:parse_header

Proto:static void __init parse_header(char *s)

Type:void

Parameter:

TypeParameterName
char *s
161  buf[8] = '\0'
162  When i < 12 cycle
163  memcpy(buf, s, 8)
164  parsed[i] = simple_strtoul - convert a string to an unsigned long*@cp: The start of the string*@endp: A pointer to the end of the parsed string will be placed here*@base: The number base to use* This function is obsolete. Please use kstrtoul instead.
166  cpio header parsing = parsed[0]
167  mode = parsed[1]
168  uid = parsed[2]
169  gid = parsed[3]
170  cpio header parsing = parsed[4]
171  mtime = parsed[5]
172  body_len = parsed[6]
173  cpio header parsing = parsed[7]
174  cpio header parsing = parsed[8]
175  rdev = new_encode_dev(MKDEV(parsed[9], parsed[10]))
176  name_len = parsed[11]
Caller
NameDescribe
do_header