Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static int match_u64int(substring_t *s, u64 *result, int base)

Type:int

Parameter:

TypeParameterName
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  If Not buf Then Return -ENOMEM
169  ret = kstrtoull(buf, base, & val)
170  If Not ret Then result = val
172  kfree(buf)
173  Return ret
Caller
NameDescribe
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