函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ldm_create_data_partitions - Create data partitions for this device*@pp: List of the partitions parsed so far*@ldb: Cache of the database structures* The database contains ALL the partitions for ALL disk groups, so we need to

函数原型:static bool ldm_create_data_partitions(struct parsed_partitions *pp, const struct ldmdb *ldb)

返回类型:bool

参数:

类型参数名称
struct parsed_partitions *pp
const struct ldmdb *ldb
577  part_num等于1
579  BUG_ON(!pp || !ldb)
581  disk等于ldm_get_disk_objid - Search a linked list of vblk's for a given Disk Id*@ldb: Cache of the database structures* The LDM Database contains a list of all partitions on all dynamic disks.* The primary PRIVHEAD, at the beginning of the physical disk, tells us
582  如果非disk
583  ldm_crit("Can't find the ID of this disk in the database.")
584  返回:false
587  长字符串拼接
591  vb等于list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(item, structvblk, list)
592  part等于part
594  如果disk_id不等于obj_id则继续下一循环
597  put_partition(pp, part_num, logical_disk_start + VBLK Partition , start, size and vol_off in sectors )
599  part_num自加
602  长字符串拼接
603  返回:true
调用者
名称描述
ldm_partitionldm_partition - Find out whether a device is a dynamic disk and handle it*@state: Partition check state including device holding the LDM Database* This determines whether the device @bdev is a dynamic disk and if so creates