tomoyo_create_entry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tomoyo_create_entry πŸ’…

okay bestie, welcome to the tomoyo_create_entry(9) page β€” that's section 9, the Kernel API Manual, so you know it's the grown-up kernel-nerd section ✨ no cap, this is the whole thing and we're gonna get through it together 🫢


🌸 NAME 🌸

tomoyo_create_entry β€” literally just creates interface files under the /sys/kernel/security/tomoyo/ directory. that's it, that's the vibe πŸŽ€


✨ SYNOPSIS ✨

here's the signature, copied exactly because we do not play with function signatures, periodt:

void tomoyo_create_entry (const char *name , const umode_t mode , struct
dentry *parent , const u8 key );

void return, four args, chef's kiss πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

so like, four things go in, and here's what each one is giving:

  • name β€” the name of the interface file. yep, the literal name, main character energy πŸ‘‘
  • mode β€” the permission of the interface file. what it's allowed to do, the whole vibe check πŸ”₯
  • parent β€” the parent directory. who it lives with, its home base 🏠
  • key β€” type of interface. the category it belongs to, iykyk πŸ’œ

πŸ’€ DESCRIPTION πŸ’€

Returns nothing.

that's literally the entire description bestie 😭 no return value, nothing comes back, it just does the thing and dips πŸ™ˆ lowkey iconic honestly.


🌈 SEE ALSO 🌈

go look at the kernel file ./security/tomoyo/securityfs_if.c for the real source-y tea πŸ“ and then check out the whole friend group:

all nine of them, we did not skip a single one, you're welcome 🧚


okay quick reminder bestie β€” this is section 9 kernel API, so don't go typing this into your shell and expecting magic. it's for the kernel girlies πŸ’–

and that's the page! πŸŽ€ sign-off time: this lil number lives under the path ./security/tomoyo, dated October 2026, and it's tomoyo_create_entry(9) all the way through. mwah, go slay your kernel hacking era β­πŸ’…

πŸ“¦ where this page comes from