Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:strtoul_lenient - parse an ASCII formatted integer from a buffer and only* fail on overflow*@cp: kernel buffer containing the string to parse*@endp: pointer to store the trailing characters*@base: the base to use*@res: where the parsed integer will be

Proto:static int strtoul_lenient(const char *cp, char **endp, unsigned int base, unsigned long *res)

Type:int

Parameter:

TypeParameterName
const char *cp
char **endp
unsigned intbase
unsigned long *res
2168  cp = _parse_integer_fixup_radix(cp, & base)
2169  rv = Convert non-negative integer string representation in explicitly given radix* to an integer.* Return number of characters consumed maybe or-ed with overflow bit.* If overflow occurs, result integer (incorrect) is still returned.
2170  If rv & KSTRTOX_OVERFLOW || result != result Then Return -ERANGE
2173  cp += rv
2175  If endp Then endp = cp
2178  res = result
2179  Return 0
Caller
NameDescribe
proc_get_longproc_get_long - reads an ASCII formatted integer from a user buffer*@buf: a kernel buffer*@size: size of the kernel buffer*@val: this is where the number will be stored*@neg: set to %TRUE if number is negative*@perm_tr: a vector which contains the allowed