函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:synth_field_string_size

函数原型:static int synth_field_string_size(char *type)

返回类型:int

参数:

类型参数名称
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  如果(start == NULL)则返回:负EINVAL
707  start加等于"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  如果非endend小于start则返回:负EINVAL
713  len等于endstart
714  如果len大于3则返回:负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  如果err则返回:err
724  如果size大于must be multiple of sizeof(u64) 则返回:负EINVAL
727  返回:size
调用者
名称描述
synth_field_size