AUDIT_RESET_..._TIME_ACTUAL(3)
π AUDIT_RESET_..._TIME_ACTUAL π
okay bestie, so this is a page from the Linux Audit API section 3 β yes, the AUDIT_RESET_..._TIME_ACTUAL(3) one. buckle up, it's short but it's important π
β¨ NAME β¨
audit_reset_backlog_wait_time_actual</p> β reset backlog wait time actual counter. that's it, that's the whole job, and she does it flawlessly π
π¦ SYNOPSIS π¦
#include <libaudit.h>
int audit_reset_backlog_wait_time_actual(int fd);
πΈ DESCRIPTION πΈ
so what does audit_reset_backlog_wait_time_actual() actually do? it resets the kernel's running total of how long system calls have been waiting around for space in the audit event queue. like, the counter goes back to zero. fresh start energy β¨
the fd you pass in? it must be an open audit netlink socket. no exceptions, no vibes-based workarounds, it's giving "correct file descriptor or nothing" π
this call is useful when administrators enable backlog waiting via the audit_set_backlog_wait_time(3) option β that's the whole point of it, preserving events when memory gets tight and things are lowkey stressful in the kernel π
and the move here? periodically clearing the counter lets you detect renewed backlog waiting after you change the queue size or the wait time. so like, you reset it, you watch it, and you catch the backlog waiting happening all over again. detective work, but make it syscalls π
β οΈ heads up bestie: the kernel must support the AUDIT_STATUS_BACKLOG_WAIT_TIME_ACTUAL field for this call to succeed. if it doesn't, this is not gonna slay, it's just gonna fail. no cap.
π RETURN VALUE π
the return value is <= 0 on error. otherwise? it's the netlink sequence id number π periodt.
π SEE ALSO π
π AUTHOR π
Steve Grubb β the icon, the legend, the main character who wrote this π«Ά
and that's the whole page bestie!! this little cutie comes to you from Red Hat, dated July 2025, filed right back under AUDIT_RESET_..._TIME_ACTUAL(3) like the queen she is. go reset some counters, drink water, ily πβ¨
π¦ 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