tomoyo_stru...by_io_buffer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– tomoyo_struct_used_by_io_buffer πŸ’–

okay bestie, welcome to the Kernel API Manual β€” this one's a lil function from the TOMOYO security corner of the kernel, and honestly it's giving "bouncer at the club checking the guest list" energy 🫢


✨ NAME ✨

tomoyo_struct_used_by_io_buffer β€” literally just checks whether a list element is being used by the users hanging out in /sys/kernel/security/tomoyo/, or not. that's it. that's the whole vibe check πŸ’…


🌸 SYNOPSIS 🌸

bool tomoyo_struct_used_by_io_buffer (const struct list_head *element );

πŸŽ€ ARGUMENTS πŸŽ€

  • element β€” a pointer to struct list_head. yes, that exact type, no cap. it's the thing we're asking about πŸ‘€

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: this function returns true if element is being used by the /sys/kernel/security/tomoyo/ users, and false if it isn't. that's the whole plot. true or false, iconic either way ✨

no hidden lore, no gotchas, no extra params. just a clean little boolean moment πŸ’œ


πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file ./security/tomoyo/gc.c says hi, and so do all of these besties β€” go say hey to them too:


ngl the whole tomoyo_del_* squad is a whole friend group and this page is just the one holding the group chat together πŸ“

and that's the page!! sourced straight from ./security/tomoyo, stamped October 2026, filed under tomoyo_struct_used_by_io_buffer(9) β€” mwah, go read the gc code, it's lowkey fascinating πŸ’–πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from