print_hex_dump_bytes(9)
π print_hex_dump_bytes(9) β NAME π
Welcome to the Kernel API Manual, bestie β this one's short and sweet and we're obsessed. print_hex_dump_bytes is literally the shorthand form of print_hex_dump_debug() with default params. That's it. That's the whole personality. π¦
β¨ SYNOPSIS β¨
print_hex_dump_bytes (prefix_str , prefix_type , buf , len );
Yes, the spacing is exactly like that, don't come for me. π
π«Ά ARGUMENTS π«Ά
prefix_strβ the string you want prefixed onto each line; the caller supplies trailing spaces for alignment if desired, i.e. the padding is your job, not the function's, no cap πprefix_typeβ controls whether a prefix of an offset, address, or none at all gets printed β your options areDUMP_PREFIX_OFFSET,DUMP_PREFIX_ADDRESS,DUMP_PREFIX_NONEπbufβ the data blob to dump, the main character of this whole operation πlenβ number of bytes in thebuf, so it knows how much of the blob to actually spill πΈ
π DESCRIPTION π
Okay so real talk: it calls print_hex_dump_debug, with log level of KERN_DEBUG, rowsize of 16, groupsize of 1, and ASCII output included. That's the whole tea β those defaults are doing all the work and they ate. π₯
π SEE ALSO π
Kernel file ./include/linux/printk.h plus the entire friend group, fr fr:
printk_cpu_sync_get_irqsave(9)printk_cpu_sync_put_irqrestore(9)pr_fmt(9)printk(9)pr_emerg(9)pr_alert(9)pr_crit(9)pr_err(9)pr_warn(9)pr_notice(9)pr_info(9)pr_cont(9)pr_devel(9)pr_debug(9)
Go dump that hex, bestie. Hexdump responsibly. πβ¨
And that's the page! Coming to you straight out of ./include/linux, in October 2026, filed under print_hex_dump_bytes(9) β slay, bye! π§π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms