audit_log_n_hex(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ audit_log_n_hex(9) β€” the Kernel API Manual glow-up ✨

okay bestie, so this is audit_log_n_hex(9) from the Kernel API Manual, and honestly? she's a little workhorse and she deserves her flowers 🌸


✨ NAME ✨

audit_log_n_hex β€” literally takes a buffer, turns it into hex, and appends it to the audit skb. that's the whole vibe πŸŽ€


🌈 SYNOPSIS 🌈

void audit_log_n_hex (struct audit_buffer *ab , const unsigned char *buf
, size_t len );

no cap, that's the exact signature β€” copy it, don't freestyle it πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ab β€” the audit_buffer, aka the main character we're appending into πŸ‘‘
  • buf β€” the buffer we're converting to hex, the raw material fr fr
  • len β€” how much of buf we're converting, length queen, respect her 🫢

πŸ’– DESCRIPTION πŸ’–

okay so first thing: there is no return value. none. zero. void. and if the expand fails? it's silently ignored β€” like, it does not tell you, it does not warn you, it just moves on 😭 that's the documented behaviour, ngl, so don't come for me.

what she actually does: takes the buf you handed her and converts it into a string of ascii hex digits ✨ then that new string gets placed onto the skb. iconic behaviour, no notes.


🌟 SEE ALSO 🌟

Kernel file ./kernel/audit.c, plus the whole audit-verse cast, and yes we're listing every single one because nobody gets left out of the group chat πŸ’œ:


and that's the page, bestie πŸ’… this one ships from the ./kernel directory, Kernel API Manual, dated October 2026 β€” mwah, go convert some hex, slay βœ¨πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from