函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型: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)

返回类型:void

参数:

类型参数名称
const char *level
const char *prefix_str
intprefix_type
introwsize
intgroupsize
const void *buf
size_tlen
boolascii
243  ptr等于buf
244  remaining等于len
247  如果rowsize不等于16且rowsize不等于32则rowsize等于16
250 i小于len循环
251  linelen等于两数取小(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  退出
263  printk("%s%s%.8x: %s\n", level, prefix_str, i, linebuf)
264  退出
265  默认
266  printk("%s%s%s\n", level, prefix_str, linebuf)
267  退出
调用者
名称描述
test_string_check_buf
__check_eq_u32_array
check_poison_mem
print_shadow_for_address
warn_or_seq_hex_dump
smp_dump_mptable
__dump_page