AUDIT_FSTYPE_TO_NAME(3)

πŸ’– AUDIT_FSTYPE_TO_NAME(3) πŸ’–

okay so bestie, we're in section 3 of the Linux Audit API and today's main character is audit_fstype_to_name. it's giving "tiny function, huge glow-up" energy and honestly? obsessed. πŸ¦‹


✨ NAME ✨

audit_fstype_to_name β€” turns that cryptic numeric fstype value into the fstype name, no cap πŸŽ€


🌸 SYNOPSIS 🌸

#include <libaudit.h>

const char *audit_fstype_to_name(int fstype);

πŸ’… DESCRIPTION πŸ’…

so audit_fstype_to_name() takes the numeric fstype value β€” and we're talking 0x64626720 or 0x74726163 β€” and converts it into the actual fstype name, which is literally "debugfs" or "tracefs". 🌈

and fstype? that's just the numeric fstype value. that's the whole vibe. numbers in, names out, periodt. πŸ‘‘


🫢 RETURN VALUE 🫢

  • if something goes wrong, you get NULL back 😭
  • otherwise the return value is the fstype name ✨
fr fr, always vibe check that return value β€” NULL means error, not "here's a name, bestie".

πŸ‘€ SEE ALSO πŸ‘€


🌟 AUTHOR 🌟

Steve Grubb πŸ’œ


Red Hat Β· Mar 2022 β€” that's the source, the version, and the date, bestie, so now you know exactly which era of the manpage you're living in πŸŽ€βœ¨ iykyk πŸ’…

πŸ“¦ where this page comes from