Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Purpose: allocate cmdline partitions.* Returns:* -1 if unable to read the partition table* 0 if this isn't our partition table* 1 if successful

Proto:int cmdline_partition(struct parsed_partitions *state)

Type:int

Parameter:

TypeParameterName
struct parsed_partitions *state
130  If cmdline Then
131  If bdev_parts Then cmdline_parts_free( & bdev_parts)
135  cmdline = NULL
136  Return -1
138  cmdline = NULL
141  If Not bdev_parts Then Return 0
144  bdevname(bdev, bdev)
145  parts = cmdline_parts_find(bdev_parts, bdev)
146  If Not parts Then Return 0
149  disk_size = get_capacity(bd_disk) << 9
151  cmdline_parts_set(parts, disk_size, 1, add_part, (void * )state)
152  cmdline_parts_verifier(1, state)
154  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.
156  Return 1