函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ldm_get_vstr - Read a length-prefixed string into a buffer*@block: Pointer to the length marker*@buffer: Location to copy string to*@buflen: Size of the output buffer* Many of the strings in the LDM Database are not NULL terminated. Instead

函数原型:static int ldm_get_vstr(const u8 *block, u8 *buffer, int buflen)

返回类型:int

参数:

类型参数名称
const u8 *block
u8 *buffer
intbuflen1, String was truncated.
696  BUG_ON(!block || !buffer)
698  length等于block[0]
699  如果length大于等于1, String was truncated.
700  ldm_error("Truncating string %d -> %d.", length, 1, String was truncated.)
701  length等于1, String was truncated.减1
703  memcpy(buffer, block + 1, length)
704  buffer[length]等于0
705  返回:length
调用者
名称描述
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_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