函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:int kstrtoll(const char *s, unsigned int base, long long *res)

返回类型:int

参数:

类型参数名称
const char *s
unsigned intbase
long long *res
150  如果s[0]恒等于'-'则
151  rv等于_kstrtoull(s + 1, base, & tmp)
152  如果rv小于0则返回:rv
154  如果((long long) - tmp > 0)则返回:负ERANGE
156  res等于负tmp
157  否则
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  如果rv小于0则返回:rv
161  如果tmp小于0则返回:负ERANGE
163  res等于tmp
165  返回:0
调用者
名称描述
_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
cgroup_file_write