tomoyo_init_log(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– tomoyo_init_log(9) πŸ’–

Welcome to the Kernel API Manual, bestie β€” today’s main character is tomoyo_init_log(9), and it’s here to allocate a buffer for audit logs. Periodt. ✨


🌸 NAME 🌸

tomoyo_init_log β€” allocate buffer for audit logs. That’s literally the whole vibe. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

char * tomoyo_init_log (struct tomoyo_request_info *r , int len , const
       char *fmt , va_list args );

πŸŽ€ ARGUMENTS πŸŽ€

  • r β€” pointer to struct tomoyo_request_info. Your request-info bestie. 🫢
  • len β€” buffer size needed for fmt and args. Get those numbers right, okay? 😭
  • fmt β€” the printf’s format string. Iconic formatting behavior. ⭐
  • args β€” va_list structure for fmt. The whole variadic situation. πŸ’œ

🌈 DESCRIPTION 🌈

It returns a pointer to allocated memory. Slay. ✨

This function uses kzalloc, so the caller must kfree if this function didn’t return NULL. No cap: that’s your memory to clean up, bestie β€” don’t leave it hanging. πŸ’…πŸ”₯

Lowkey important: kzalloc is in the building, so the kfree rule is real. If this function didn’t return NULL, caller cleanup is mandatory.

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./security/tomoyo/audit.c plus these absolute icons:


Okay bye bestie β€” shoutout to source ./security/tomoyo, dated October 2026, and this page is tomoyo_init_log(9) πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from