tomoyo_try_to_gc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tomoyo_try_to_gc(9) β€” like, the whole Kernel API Manual energy, bestie ✨

okay so picture this: it's a kernel function, it lives in the Kernel API Manual, and its entire personality is "try to kfree() an entry" πŸ’–. That's the vibe. That's the gig. Let's get into it πŸŽ€


🌸 NAME 🌸

tomoyo_try_to_gc β€” bestie's whole job is to try to kfree() an entry 🫢


✨ SYNOPSIS ✨

void tomoyo_try_to_gc (const enum tomoyo_policy_id type , struct
list_head *element );

like, look at her. void return, two args, no notes πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • type β€” one of the values in "enum tomoyo_policy_id". iykyk 🌈
  • element β€” a pointer to "struct list_head". literally just a pointer, no cap πŸ’…

πŸ’€ DESCRIPTION πŸ’€

Returns nothing. that's it. that's the whole return value situation, she gives you nothing back and honestly? iconic πŸ™ˆ

⚠️ the caller holds the tomoyo_policy_lock mutex. like, you hold it. not her. this is a you problem, bestie, so don't come crying to me 😭

πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./security/tomoyo/gc.c β€” and then the whole friend group, fr fr:


and that's the post 🧚 coming at you straight from ./security/tomoyo, dated October 2026, the tomoyo_try_to_gc(9) chapter of the Kernel API Manual β€” slay, mwah πŸ’‹β­

πŸ“¦ where this page comes from