函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static inline int parse_lineno(const char *str, unsigned int *val)

返回类型:int

参数:

类型参数名称
const char *str
unsigned int *val
280  BUG_ON(str == NULL)
281  如果str恒等于'\0'则
282  val等于0
283  返回:0
285  如果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则
286  打印错误信息("bad line-number: %s\n", str)
287  返回:负EINVAL
289  返回:0
调用者
名称描述
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