Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:synth_field_string_size

Proto:static int synth_field_string_size(char *type)

Type:int

Parameter:

TypeParameterName
char *type
704  start = strstr - Find the first substring in a %NUL terminated string*@s1: The string to be searched*@s2: The string to search for
705  If (start == NULL) Then Return -EINVAL
707  start += size of "char[" - 1
709  end = strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for
710  If Not end || end < start Then Return -EINVAL
713  len = end - start
714  If len > 3 Then Return -EINVAL
717  strncpy(buf, start, len)
718  buf[len] = '\0'
720  err = kstrtouint - convert a string to an unsigned int*@s: The start of the string. The string must be null-terminated, and may also* include a single newline before its terminating null. The first character* may also be a plus sign, but not a minus sign.
721  If err Then Return err
724  If size > must be multiple of sizeof(u64) Then Return -EINVAL
727  Return size
Caller
NameDescribe
synth_field_size