Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:we practice scaling the ring buffer by powers of 2

Proto:static void __init log_buf_len_update(u64 size)

Type:void

Parameter:

TypeParameterName
u64size
1089  If size > LOG_BUF_LEN_MAX Then
1090  size = LOG_BUF_LEN_MAX
1091  pr_err("log_buf over 2G is not supported.\n")
1094  If size Then size = 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)
1096  If size > log_buf_len Then quested log_buf_len from kernel cmdline = size
Caller
NameDescribe
log_buf_len_setupsave requested log_buf_len since it's too early to process it