Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static bool ldm_ldmdb_add(u8 *data, int len, struct ldmdb *ldb)

Type:bool

Parameter:

TypeParameterName
u8 *data
intlen
struct ldmdb *ldb
1170  BUG_ON(!data || !ldb)
1172  vb = Allocation memory
1173  If Not vb Then
1174  ldm_crit("Out of memory.")
1175  Return false
1178  If Not ldm_parse_vblk - Read a raw VBLK object into a vblk structure*@buf: Block of data being worked on*@len: Size of the block of data*@vb: In-memory vblk in which to return information* Read a raw VBLK object into a vblk structure Then
1179  kfree(vb)
1180  Return false
1185  Case type == Disk Group, version 3
1188  Break
1189  Case type == Disk, version 3
1190  Case type == Disk, version 4
1192  Break
1193  Case type == Volume, version 5
1195  Break
1196  Case type == Component, version 3
1198  Break
1199  Case type == Partition, version 3
1209  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
1210  Break
1212  Return true
Caller
NameDescribe
ldm_frag_commitldm_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
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