函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:match_u64int: scan a number in the given base from a substring_t*@s: substring to be scanned*@result: resulting u64 on success*@base: base to use when converting string* Description: Given a &substring_t and a base, attempts to parse the substring

函数原型:static int match_u64int(substring_t *s, u64 *result, int base)

返回类型:int

参数:

类型参数名称
substring_t *s
u64 *result
intbase
165  buf等于match_strdup: - allocate a new string with the contents of a substring_t*@s: &substring_t to copy* Description: Allocates and returns a string filled with the contents of* the &substring_t @s. The caller is responsible for freeing the returned
166  如果非buf则返回:负ENOMEM
169  ret等于kstrtoull(buf, base, & val)
170  如果非retresult等于val
172  kfree(buf)
173  返回:ret
调用者
名称描述
match_u64match_u64: - scan a decimal representation of a u64 from* a substring_t*@s: substring_t to be scanned*@result: resulting unsigned long long on success* Description: Attempts to parse the &substring_t @s as a long decimal* integer