audit_log_end(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– audit_log_end(9) πŸ’–

okay bestie, welcome to the Kernel API Manual β€” this is audit_log_end(9), and it's literally about ending one audit record. iconic. ✨


🌸 NAME 🌸

audit_log_end β€” end one audit record. that's the assignment, no cap. πŸ’…


✨ SYNOPSIS ✨

void audit_log_end (struct audit_buffer *ab );

πŸŽ€ ARGUMENTS πŸŽ€

  • ab β€” the audit_buffer. that's the whole argument, bestie. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the vibe: we can not do a netlink send inside an irq context, because it blocks β€” the last arg, flags, is not set to MSG_DONTWAIT. so instead, the audit buffer is placed on a queue, and a kthread is scheduled to remove them from the queue outside the irq context. May be called in any context, fr fr. πŸ”₯


🌈 SEE ALSO 🌈

The kernel file is ./kernel/audit.c, and here's the whole see-also crew:


mwah πŸ’‹ this page was brought to you by the source/version ./kernel, dated October 2026, and it's literally the audit_log_end(9) manual page. πŸŽ€βœ¨

πŸ“¦ where this page comes from