函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sgi_partition

函数原型:int sgi_partition(struct parsed_partitions *state)

返回类型:int

参数:

类型参数名称
struct parsed_partitions *state
35  slot等于1
43  label等于read_part_sector(state, 0, & sect)
44  如果非label则返回:负1
46  p等于partitions[0]
47  magic等于 Big fat spliff...
48  如果be32_to_cpu(magic)不等于SGI_LABEL_MAGIC
51  put_dev_sector(sect)
52  返回:0
54  ui等于label加1减1
55 ui大于等于label循环
56  cs等于ui自减
57  csum加等于be32_to_cpu(cs)
59  如果csum
60  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
62  put_dev_sector(sect)
63  返回:0
70 i小于16循环
71  blocks等于be32_to_cpu( Size in logical blocks )
72  start等于be32_to_cpu( First logical block )
73  如果blocks
78  slot自加
80  长字符串拼接
81  put_dev_sector(sect)
82  返回:1