Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:parse_map_size

Proto:static int parse_map_size(char *str)

Type:int

Parameter:

TypeParameterName
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  If ret Then Go to 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  If map_bits < TRACING_MAP_BITS_MIN || map_bits > TRACING_MAP_BITS_MAX Then ret = -EINVAL
2048  Else ret = map_bits
2050  out :
2051  Return ret
Caller
NameDescribe
parse_assignment