函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ldm_validate_partition_table - Determine whether bdev might be a dynamic disk*@state: Partition check state including device holding the LDM Database* This function provides a weak test to decide whether the device is a dynamic* disk or not

函数原型:static bool ldm_validate_partition_table(struct parsed_partitions *state)

返回类型:bool

参数:

类型参数名称
struct parsed_partitions *state
498  bool result = false
500  BUG_ON(!state)
502  data等于read_part_sector(state, 0, & sect)
503  如果非data
504  ldm_info("Disk read failed.")
505  返回:false
508  如果*data加0x01FE的和不等于cpu_to_le16(s/partitions/msdos.h)则转到:out
511  p等于data加0x01BE
512 i小于4循环如果Borrowed from msdos.c (p)恒等于Formerly SFS (Landis).
514  result = true
515  退出
518  如果resultldm_debug/info/error/crit - Output an error message*@f: A printf format string containing the message*@...: Variables to substitute into @f* ldm_debug() writes a DEBUG level message to the syslog but only if the* driver was compiled with debug enabled("Found W2K dynamic disk partition type.")
521  out :
522  put_dev_sector(sect)
523  返回:result
调用者
名称描述
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