AUDIT_SET_BACKLOG_WAIT_TIME(3)
π AUDIT_SET_BACKLOG_WAIT_TIME β bestie edition π
soooo this is a page from the Library Functions Manual, and the function it's hyping up is audit_set_backlog_wait_time β yes the title gets truncated to AUDIT_SET_...G_WAIT_TIME(3) up top because man page headers have zero chill about column width. anyway. let's get into it π«Ά
β¨ NAME β¨
audit_set_backlog_wait_time β set the audit backlog wait time π
πΈ SYNOPSIS πΈ
#include <libaudit.h>
int audit_set_backlog_wait_time(int fd, uint32_t bwt);"
okay yes the trailing " is just. there. in the original. we don't question it, we respect it π
π¦ DESCRIPTION π¦
okay so listen. audit_set_backlog_wait_time sets the amount of time the kernel is gonna wait before it tries to yeet more audit events down the descriptor you handed it in fd.
and the bwt parameter? that's your delay, measured in jiffies, before the kernel attempts to transfer more events once backlog_limit has been reached. it's literally giving the audit daemon a lil breather so it can drain the kernel queue πβ¨
and if you're wondering what the default is: it's 60000, aka 60 * HZ, as set in the kernel. iconic. no notes. π
π RETURN VALUE π
so the return value is <= 0 on error, otherwise it's the netlink sequence id number. slay.
also heads up bestie β this function can have any error that sendto would encounter. so like, it's not picky. it'll catch whatever sendto catches. π
π SEE ALSO π
π AUTHOR π
Steve Grubb β the main character who wrote this. periodt. π
and that's the whole page babes, brought to you by the Linux Audit API, dated Oct 2014. go forth and set your backlog wait times responsibly, ily, bye π§β¨
π¦ where this page comes from
- alpine 3.23: audit-doc 4.1.2-r2 Β· LGPL-2.1-or-later
- alpine 3.24: audit-doc 4.1.2-r6 Β· LGPL-2.1-or-later
- arch rolling: audit 4.2.1-1 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- centos-stream 10: audit-libs-devel 4.2.1-3.el10 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.1.1-2.fc43 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.1.1-2.fc43 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.2.1-1.fc43 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.2.1-1.fc43 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.1.4-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.1.4-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.2.1-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.2.1-1.fc44 Β· LGPL-2.0-or-later
- nixpkgs unstable: audit 4.2.1
- ubuntu resolute: libaudit-dev 1:4.1.2-1build1 Β· GPL-2.0-only
- ubuntu resolute: libaudit-dev 1:4.1.2-1ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: libaudit-dev 1:4.1.2-1ubuntu1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms