函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\seq_file.c Create Date:2022-07-29 10:40:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:A complete analogue of print_hex_dump()

函数原型:void seq_hex_dump(struct seq_file *m, const char *prefix_str, int prefix_type, int rowsize, int groupsize, const void *buf, size_t len, bool ascii)

返回类型:void

参数:

类型参数名称
struct seq_file *m
const char *prefix_str
intprefix_type
introwsize
intgroupsize
const void *buf
size_tlen
boolascii
861  ptr等于buf
862  remaining等于len
867  如果rowsize不等于16且rowsize不等于32则rowsize等于16
870 i小于len且非seq_has_overflowed - check if the buffer has overflowed*@m: the seq_file handle* seq_files have a buffer which may overflow. When this happens a larger* buffer is reallocated and all the data will be printed again.循环
871  linelen等于两数取小(remaining, rowsize)
872  remaining减等于rowsize
876  seq_printf(m, "%s%p: ", prefix_str, ptr + i)
877  退出
879  seq_printf(m, "%s%.8x: ", prefix_str, i)
880  退出
881  默认
882  seq_printf(m, "%s", prefix_str)
883  退出
886  size等于获取任意数据的缓冲区
887  ret等于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;
889  seq_commit - commit data to the buffer*@m: the seq_file handle*@num: the number of bytes to commit* Commit @num bytes of data written to a buffer previously acquired* by seq_buf_get. To signal an error condition, or that the data
891  seq_putc(m, '\n')