print_hex_dump_bytes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 are DUMP_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 the buf, 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:


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