Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:printk part of the temporary buffer line by line

Proto:static int printk_safe_flush_buffer(const char *start, size_t len)

Type:int

Parameter:

TypeParameterName
const char *start
size_tlen
127  c = start
128  end = start + len
129  header = true
132  When c < end cycle
133  If c == '\n' Then
135  start = ++c
136  header = true
137  Continue
141  If c + 1 < end && printk_get_level(c) Then
142  If header Then
143  c = printk_skip_level(c)
144  Continue
148  start = c++
149  header = true
150  Continue
153  header = false
154  c++
158  If start < end && Not header Then
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  Return len
Caller
NameDescribe
__printk_safe_flushFlush data from the associated per-CPU buffer. The function* can be called either via IRQ work or independently.