函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

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

返回类型:int

参数:

类型参数名称
struct parsed_partitions *state
130  如果cmdline
131  如果bdev_partscmdline_parts_free( & bdev_parts)
134  如果cmdline_parts_parse( & bdev_parts, cmdline)则
135  cmdline = NULL
136  返回:负1
138  cmdline = NULL
141  如果非bdev_parts则返回:0
144  bdevname(bdev, bdev)
145  parts等于cmdline_parts_find(bdev_parts, bdev)
146  如果非parts则返回: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  长字符串拼接
156  返回:1