函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:we practice scaling the ring buffer by powers of 2

函数原型:static void __init log_buf_len_update(u64 size)

返回类型:void

参数:

类型参数名称
u64size
1089  如果size大于LOG_BUF_LEN_MAX
1090  size等于LOG_BUF_LEN_MAX
1091  打印错误信息("log_buf over 2G is not supported.\n")
1094  如果sizesize等于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  如果size大于log_buf_lenquested log_buf_len from kernel cmdline 等于size
调用者
名称描述
log_buf_len_setupsave requested log_buf_len since it's too early to process it