函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mpute the message size including the padding bytes

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

返回类型:unsigned int

参数:

类型参数名称
u16text_len
u16dict_len
unsigned int *pad_len
570  size等于sizeof(structprintk_log)加text_lendict_len
571  pad_len等于负size按位与cord buffer 减1
572  size加等于pad_len
574  返回:size
调用者
名称描述
truncate_msg
log_storesert record into the buffer, discard old ones, update heads