Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Parse a single line number. Note that the empty string ""* is treated as a special case and converted to zero, which* is later treated as a "don't care" value.

Proto:static inline int parse_lineno(const char *str, unsigned int *val)

Type:int

Parameter:

TypeParameterName
const char *str
unsigned int *val
280  BUG_ON(str == NULL)
281  If str == '\0' Then
282  val = 0
283  Return 0
285  If 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. < 0 Then
286  pr_err("bad line-number: %s\n", str)
287  Return -EINVAL
289  Return 0
Caller
NameDescribe
ddebug_parse_queryParse words[] as a ddebug query specification, which is a series* of (keyword, value) pairs chosen from these possibilities:* func * file * file * module * format