函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:parse_map_size

函数原型:static int parse_map_size(char *str)

返回类型:int

参数:

类型参数名称
char *str
2040  ret等于kstrtoul - convert a string to an unsigned 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.
2041  如果ret则转到:out
2044  map_bits等于log2 - log base 2 of 32-bit or a 64-bit unsigned value*@n: parameter* constant-capable log of base 2 calculation* - this can be used to initialise global variables from constant data, hence* the massive ternary operator construction* selects the (undup_pow_of_two - round the given value up to nearest power of two*@n: parameter* round the given value up to the nearest power of two* - the result is undefined when n == 0* - this can be used to initialise global variables from constant data(size))
2045  如果map_bits小于TRACING_MAP_BITS_MINmap_bits大于TRACING_MAP_BITS_MAXret等于负EINVAL
2048  否则ret等于map_bits
2050  out :
2051  返回:ret
调用者
名称描述
parse_assignment