tomoyo_try_to_gc(9)
π 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:
tomoyo_memory_free(9)tomoyo_struct_used_by_io_buffer(9)tomoyo_name_used_by_io_buffer(9)tomoyo_del_transition_control(9)tomoyo_del_aggregator(9)tomoyo_del_manager(9)tomoyo_del_acl(9)tomoyo_del_domain(9)tomoyo_del_condition(9)tomoyo_del_name(9)tomoyo_del_path_group(9)tomoyo_del_group(9)tomoyo_del_address_group(9)tomoyo_del_number_group(9)tomoyo_collect_member(9)tomoyo_collect_acl(9)tomoyo_collect_entry(9)tomoyo_gc_thread(9)tomoyo_notify_gc(9)
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
- 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