Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\partitions\sgi.c Create Date:2022-07-28 17:29:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sgi_partition

Proto:int sgi_partition(struct parsed_partitions *state)

Type:int

Parameter:

TypeParameterName
struct parsed_partitions *state
35  slot = 1
43  label = read_part_sector(state, 0, & sect)
44  If Not label Then Return -1
46  p = partitions[0]
47  magic = Big fat spliff...
48  If be32_to_cpu(magic) != SGI_LABEL_MAGIC Then
51  put_dev_sector(sect)
52  Return 0
54  ui = label + 1 - 1
55  When ui >= label cycle
56  cs = ui--
57  csum += be32_to_cpu(cs)
59  If csum Then
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  Return 0
70  When i < 16 cycle
71  blocks = be32_to_cpu( Size in logical blocks )
72  start = be32_to_cpu( First logical block )
73  If blocks Then
78  slot++
80  strlcat - Append a length-limited, C-string to another*@dest: The string to be appended to*@src: The string to append to it*@count: The size of the destination buffer.
81  put_dev_sector(sect)
82  Return 1