Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kstrtoll - convert a string to a long 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.

Proto:int kstrtoll(const char *s, unsigned int base, long long *res)

Type:int

Parameter:

TypeParameterName
const char *s
unsigned intbase
long long *res
150  If s[0] == '-' Then
151  rv = _kstrtoull(s + 1, base, & tmp)
152  If rv < 0 Then Return rv
154  If ((long long) - tmp > 0) Then Return -ERANGE
156  res = -tmp
157  Else
158  rv = kstrtoull - convert a string to an unsigned long 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.
159  If rv < 0 Then Return rv
161  If tmp < 0 Then Return -ERANGE
163  res = tmp
165  Return 0
Caller
NameDescribe
_kstrtolInternal, do not use.
kstrtointkstrtoint - convert a string to an 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 or a minus sign.
kstrtos16
kstrtos8
kstrtoll_from_user
pids_max_write
parse_predCalled when a predicate is encountered by predicate_parse()
parse_field