函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:长字符串拼接

函数原型:size_t strlcat(char *dest, const char *src, size_t count)

返回类型:size_t

参数:

类型参数名称
char *dest
const char *src
size_tcount
333  dsize等于strlen(dest)
334  len等于strlen(src)
335  res等于dsizelen
338  BUG_ON(dsize >= count)
340  dest加等于dsize
341  count减等于dsize
342  如果len大于等于countlen等于count减1
344  内存复制(dest, src, len)
345  dest[len]等于0
346  返回:res
调用者
名称描述
string_stream_get_string
amiga_partition
atari_partition
aix_partition
add_part
cmdline_partitionPurpose: allocate cmdline partitions.* Returns:* -1 if unable to read the partition table* 0 if this isn't our partition table* 1 if successful
mac_partition
ldm_create_data_partitionsldm_create_data_partitions - Create data partitions for this device*@pp: List of the partitions parsed so far*@ldb: Cache of the database structures* The database contains ALL the partitions for ALL disk groups, so we need to
msdos_partition
osf_partition
sgi_partition
sun_partition
ultrix_partition
find_vol1_partitions
find_lnx1_partitions
find_cms1_partitions
ibm_partitionThis is the main function, called by check.c
efi_partition_partition(struct parsed_partitions *state)*@state: disk parsed partitions* Description: called from check.c, if the disk contains GPT* partitions, sets up partition entries in the kernel.* If the first block on the disk is a legacy MBR,
karma_partition
sysv68_partition
do_one_initcall
put_partition
check_partition