Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:msg_print_ext_body

Proto:static ssize_t msg_print_ext_body(char *buf, size_t size, char *dict, size_t dict_len, char *text, size_t text_len)

Type:ssize_t

Parameter:

TypeParameterName
char *buf
size_tsize
char *dict
size_tdict_len
char *text
size_ttext_len
739  p = buf , e = buf + size
743  When i < text_len cycle
744  c = text[i]
746  If c < ' ' || c >= 127 || c == '\\' Then p += scnprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
748  Else append_char( & p, e, c)
751  append_char( & p, e, '\n')
753  If dict_len Then
754  bool line = true
756  When i < dict_len cycle
757  c = dict[i]
759  If line Then
760  append_char( & p, e, ' ')
761  line = false
764  If c == '\0' Then
765  append_char( & p, e, '\n')
766  line = true
767  Continue
770  If c < ' ' || c >= 127 || c == '\\' Then
775  append_char( & p, e, c)
777  append_char( & p, e, '\n')
780  Return p - buf
Caller
NameDescribe
devkmsg_read
console_unlocksole_unlock - unlock the console system* Releases the console_lock which the caller holds on the console system* and the console driver list.* While the console_lock was held, console output may have been buffered* by printk()