Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:str_to_immediate

Proto:static int str_to_immediate(char *str, unsigned long *imm)

Type:int

Parameter:

TypeParameterName
char *str
unsigned long *imm
331  If isdigit(str[0]) Then Return kstrtoul - convert a string to an unsigned long*@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.
333  Else if str[0] == '-' Then Return kstrtol - convert a string to a long*@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 or a minus sign.
335  Else if str[0] == '+' Then Return kstrtol - convert a string to a long*@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 or a minus sign.
337  Return -EINVAL
Caller
NameDescribe
parse_probe_argRecursive argument parser