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:mpute the message size including the padding bytes

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

Type:unsigned int

Parameter:

TypeParameterName
u16text_len
u16dict_len
unsigned int *pad_len
570  size = sizeof(structprintk_log) + text_len + dict_len
571  pad_len = -size & cord buffer - 1
572  size += pad_len
574  Return size
Caller
NameDescribe
truncate_msg
log_storesert record into the buffer, discard old ones, update heads