函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:add_part

函数原型:static int add_part(int slot, struct cmdline_subpart *subpart, void *param)

返回类型:int

参数:

类型参数名称
intslot
struct cmdline_subpart *subpart
void *param
31  state等于param
33  如果slot大于等于limit则返回:1
36  put_partition(state, slot, from >> 9, size >> 9)
39  info等于info
41  label_min等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(int, volname的长度 - 1, partition name, such as 'rootfs' 的长度)
43  strncpy(volname, partition name, such as 'rootfs' , label_min)
44  volname[label_min]等于'\0'
46  snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
47  长字符串拼接
49  has_info = true
51  返回:0