函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ldm_frag_commit - Validate fragmented VBLKs and add them to the database*@frags: Linked list of VBLK fragments*@ldb: Cache of the database structures* Now that all the fragmented VBLKs have been collected, they must be added to* the database for later use

函数原型:static bool ldm_frag_commit(struct list_head *frags, struct ldmdb *ldb)

返回类型:bool

参数:

类型参数名称
struct list_head *frags
struct ldmdb *ldb
1323  BUG_ON(!frags || !ldb)
1326  f等于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, structfrag, list)
1328  如果 Which portions are in use 不等于0xFF则
1329  ldm_error("VBLK group %d is incomplete (0x%02x).", group, Which portions are in use )
1331  返回:false
1334  如果非ldm_ldmdb_add - Adds a raw VBLK entry to the ldmdb database*@data: Raw VBLK to add to the database*@len: Size of the raw VBLK*@ldb: Cache of the database structures* The VBLKs are sorted into categories. Partitions are also sorted by offset.* N则返回:false
1337  返回:true
调用者
名称描述
ldm_get_vblksldm_get_vblks - Read the on-disk database of VBLKs into memory*@state: Partition check state including device holding the LDM Database*@base: Offset, into @state->bdev, of the database*@ldb: Cache of the database structures* To use the information from