Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:t_show

Proto:static int t_show(struct seq_file *m, void *v)

Type:int

Parameter:

TypeParameterName
struct seq_file *m
void *v
302  fmt = v
303  str = fmt
306  If Not fmt Then Return 0
309  seq_printf(m, "0x%lx : \"", * (unsignedlong * )fmt)
314  When str[i] cycle
316  Case str[i] == '\n'
317  seq_puts(m, "\\n")
318  Break
319  Case str[i] == '\t'
320  seq_puts(m, "\\t")
321  Break
322  Case str[i] == '\\'
323  seq_putc(m, '\\')
324  Break
325  Case str[i] == '"'
326  seq_puts(m, "\\\"")
327  Break
328  Default
329  seq_putc(m, str[i])
332  seq_puts(m, "\"\n")
334  Return 0