tomoyo_init_log(9)
π 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 tostruct tomoyo_request_info. Your request-info bestie. π«Άlenβ buffer size needed forfmtandargs. Get those numbers right, okay? πfmtβ theprintfβs format string. Iconic formatting behavior. βargsβva_liststructure forfmt. 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:kzallocis in the building, so thekfreerule is real. If this function didnβt returnNULL, caller cleanup is mandatory.
π SEE ALSO π
Kernel file ./security/tomoyo/audit.c plus these absolute icons:
tomoyo_print_bprm(9)tomoyo_filetype(9)tomoyo_print_header(9)tomoyo_get_audit(9)tomoyo_write_log2(9)tomoyo_write_log(9)tomoyo_read_log(9)tomoyo_poll_log(9)
Okay bye bestie β shoutout to source ./security/tomoyo, dated October 2026, and this page is tomoyo_init_log(9) πππ¦
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms