函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\vsprintf.c Create Date:2022-07-27 07:09:12
Last Modify:2022-05-21 09:47:42 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:转换字符串为整形

函数原型:long simple_strtol(const char *cp, char **endp, unsigned int base)

返回类型:long

参数:

类型参数名称
const char *cp
char **endp
unsigned intbase
104  如果cp恒等于'-'则返回:负转换字符串为无符号整形
107  返回:转换字符串为无符号整形
调用者
名称描述
vsscanfvsscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: format of buffer*@args: arguments
get_rangeIf a hyphen was found in get_option, this will handle the* range of numbers, M-N. This will expand the range and insert* the values[M, M+1, ..., N] into the ints array in get_options.
get_optionget_option - Parse integer from an option string*@str: option string*@pint: (output) integer value parsed from @str* Read an int from an option string; if available accept a subsequent* comma as well
match_onematch_one: - Determines if a string matches a simple pattern*@s: the string to examine for presence of the pattern*@p: the string containing the pattern*@args: array of %MAX_OPT_ARGS &substring_t elements. Used to return match* locations.
match_numbermatch_number: scan a number in the given base from a substring_t*@s: substring to be scanned*@result: resulting integer on success*@base: base to use when converting string* Description: Given a &substring_t and a base, attempts to parse the substring
apm_setup
kdb_dmesgkdb_dmesg - This function implements the 'dmesg' command to display* the contents of the syslog buffer.* dmesg [lines] [adjust]
load_ramdisk
deadline_var_store