Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:print_hex_dump - print a text hex dump to syslog for a binary blob of data*@level: kernel log level (e

Proto:void print_hex_dump(const char *level, const char *prefix_str, int prefix_type, int rowsize, int groupsize, const void *buf, size_t len, bool ascii)

Type:void

Parameter:

TypeParameterName
const char *level
const char *prefix_str
intprefix_type
introwsize
intgroupsize
const void *buf
size_tlen
boolascii
243  ptr = buf
244  remaining = len
247  If rowsize != 16 && rowsize != 32 Then rowsize = 16
250  When i < len cycle
251  linelen = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(remaining, rowsize)
252  remaining -= rowsize
254  hex_dump_to_buffer - convert a blob of data to "hex ASCII" in memory*@buf: data blob to dump*@len: number of bytes in the @buf*@rowsize: number of bytes to print per line; must be 16 or 32*@groupsize: number of bytes to print at a time (1, 2, 4, 8;
259  printk("%s%s%p: %s\n", level, prefix_str, ptr + i, linebuf)
261  Break
263  printk("%s%s%.8x: %s\n", level, prefix_str, i, linebuf)
264  Break
265  Default
266  printk("%s%s%s\n", level, prefix_str, linebuf)
267  Break
Caller
NameDescribe
test_string_check_buf
__check_eq_u32_array
check_poison_mem
print_shadow_for_address
warn_or_seq_hex_dump