Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:truncate_msg

Proto:static unsigned int truncate_msg(u16 *text_len, u16 *trunc_msg_len, u16 *dict_len, unsigned int *pad_len)

Type:unsigned int

Parameter:

TypeParameterName
u16 *text_len
u16 *trunc_msg_len
u16 *dict_len
unsigned int *pad_len
592  max_text_len = log_buf_len / Define 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  If text_len > max_text_len Then text_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  Return mpute the message size including the padding bytes
Caller
NameDescribe
log_storesert record into the buffer, discard old ones, update heads