函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:truncate_msg

函数原型:static unsigned int truncate_msg(u16 *text_len, u16 *trunc_msg_len, u16 *dict_len, unsigned int *pad_len)

返回类型:unsigned int

参数:

类型参数名称
u16 *text_len
u16 *trunc_msg_len
u16 *dict_len
unsigned int *pad_len
592  max_text_len等于log_buf_lenDefine how much of the log buffer we could take at maximum. The value* must be greater than two. Note that only half of the buffer is available* when the index points to the middle.
593  如果text_len大于max_text_lentext_len等于max_text_len
596  trunc_msg_len等于strlen - Find the length of a string*@s: The string to be sized
598  dict_len等于0
600  返回:mpute the message size including the padding bytes
调用者
名称描述
log_storesert record into the buffer, discard old ones, update heads