ACCT_PROCESS(9)
π ACCT_PROCESS(9) π
okay so this is a page from the Kernel Developer's Manual β yes, kernel devs have manuals too, and yes, this one is about β¨process accountingβ¨. stay with me bestie, it's actually cute and short.
πΈ NAME πΈ
acct_process β the little function that fills in and writes out the process accounting record π
β¨ SYNOPSIS β¨
#include <sys/acct.h>
int
acct_process(struct lwp *l);
π¦ DESCRIPTION π¦
So acct_process is the function that gets called when a process exits. Like, it's the last thing your process does before it's gone, and it's literally just here to do the receipts π
If accounting is turned off, it returns immediately β no notes, no drama, it just leaves. byeee π
But if accounting is turned on (turned on via acct(2), iykyk), then acct_process does two things, in order:
- it populates the accounting structure β the one described over in
acct(5)π - then it writes the accounting record out to the file specified by
acct(2)π
so it's giving "fill out the form, then file the form." main character energy honestly.
π RETURN VALUES π
acct_process returns 0 on success π and, on failure, it returns the same error codes as vn_rdwr(9) π
ngl if you're getting an error back, go read vn_rdwr(9) β that's where the actual error lore lives, this page is not the one spilling it.
π SEE ALSO π
π«Ά and that's the whole vibe. this page dropped from Debian on August 5, 2024 β screenshot it, cite it, love it. periodt. π
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2024 The NetBSD Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms