Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:add_part

Proto:static int add_part(int slot, struct cmdline_subpart *subpart, void *param)

Type:int

Parameter:

TypeParameterName
intslot
struct cmdline_subpart *subpart
void *param
31  state = param
33  If slot >= limit Then Return 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, size of volname - 1, size of 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  strlcat - Append a length-limited, C-string to another*@dest: The string to be appended to*@src: The string to append to it*@count: The size of the destination buffer.
49  has_info = true
51  Return 0