Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ldm_relative - Calculate the next relative offset*@buffer: Block of data being worked on*@buflen: Size of the block of data*@base: Size of the previous fixed width fields*@offset: Cumulative size of the previous variable-width fields* Because many of the

Proto:static int ldm_relative(const u8 *buffer, int buflen, int base, int offset)

Type:int

Parameter:

TypeParameterName
const u8 *buffer
intbuflen
intbase
intoffset
624  base += offset
625  If Not buffer || offset < 0 || base > buflen Then
626  If Not buffer Then ldm_error("!buffer")
628  If offset < 0 Then ldm_error("offset (%d) < 0", offset)
630  If base > buflen Then ldm_error("base (%d) > buflen (%d)", base, buflen)
632  Return -1
634  If base + buffer[base] >= buflen Then
635  ldm_error("base (%d) + buffer[base] (%d) >= buflen (%d)", base, buffer[base], buflen)
637  Return -1
639  Return buffer[base] + offset + 1
Caller
NameDescribe
ldm_parse_cmp3ldm_parse_cmp3 - Read a raw VBLK Component object into a vblk structure*@buffer: Block of data being worked on*@buflen: Size of the block of data*@vb: In-memory vblk in which to return information
ldm_parse_dgr3ldm_parse_dgr3 - Read a raw VBLK Disk Group object into a vblk structure*@buffer: Block of data being worked on*@buflen: Size of the block of data*@vb: In-memory vblk in which to return information
ldm_parse_dgr4ldm_parse_dgr4 - Read a raw VBLK Disk Group object into a vblk structure*@buffer: Block of data being worked on*@buflen: Size of the block of data*@vb: In-memory vblk in which to return information
ldm_parse_dsk3ldm_parse_dsk3 - Read a raw VBLK Disk object into a vblk structure*@buffer: Block of data being worked on*@buflen: Size of the block of data*@vb: In-memory vblk in which to return information* Read a raw VBLK Disk object (version 3) into a vblk structure
ldm_parse_dsk4ldm_parse_dsk4 - Read a raw VBLK Disk object into a vblk structure*@buffer: Block of data being worked on*@buflen: Size of the block of data*@vb: In-memory vblk in which to return information* Read a raw VBLK Disk object (version 4) into a vblk structure
ldm_parse_prt3ldm_parse_prt3 - Read a raw VBLK Partition object into a vblk structure*@buffer: Block of data being worked on*@buflen: Size of the block of data*@vb: In-memory vblk in which to return information
ldm_parse_vol5ldm_parse_vol5 - Read a raw VBLK Volume object into a vblk structure*@buffer: Block of data being worked on*@buflen: Size of the block of data*@vb: In-memory vblk in which to return information
ldm_parse_vblkldm_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