函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:printk part of the temporary buffer line by line

函数原型:static int printk_safe_flush_buffer(const char *start, size_t len)

返回类型:int

参数:

类型参数名称
const char *start
size_tlen
127  c等于start
128  end等于startlen
129  header = true
132 c小于end循环
133  如果c恒等于'\n'则
135  start等于c先自加
136  header = true
137  继续下一循环
141  如果c加1小于endprintk_get_level(c)则
142  如果header
143  c等于printk_skip_level(c)
144  继续下一循环
148  start等于c自加
149  header = true
150  继续下一循环
153  header = false
154  c自加
158  如果start小于end且非header
159  static const char newline[] = Annotation for a "continued" line of log printout (only done after a* line that had no enclosing \n). Only to be used by core/arch code* during early bootup (a continued line is not SMP-safe otherwise). "\n"
161  printk_safe_flush_line(start, end - start)
162  printk_safe_flush_line(newline, strlen - Find the length of a string*@s: The string to be sized)
165  返回:len
调用者
名称描述
__printk_safe_flushFlush data from the associated per-CPU buffer. The function* can be called either via IRQ work or independently.