函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:do_header

函数原型:static int __init do_header(void)

返回类型:int

参数:

246  如果memcmp(collected, "070707", 6)恒等于0则
247  error("incorrect cpio method used: use -H newc option")
248  返回:1
250  如果内存比较
251  error("no cpio magic")
252  返回:1
254  parse_header(collected)
255  next_header等于this_headerlink hash (name_len)加body_len
256  next_header等于next_header加3按位与3的反
257  state = SkipIt
258  如果name_len小于等于0或name_len大于# chars in a path name including nul 则返回:0
260  如果S_ISLNK(mode)则
261  如果body_len大于# chars in a path name including nul 则返回:0
263  collect等于collected等于symlink_buf
264  remains等于link hash (name_len)加body_len
265  FSM 等于GotSymlink
266  state = Collect
267  返回:0
269  如果S_ISREG(mode)或非body_lenread_into(name_buf, link hash (name_len), GotName)
271  返回:0