tomoyo_write_control(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tomoyo_write_control(9) β€” a Kernel API Manual moment πŸŽ€

okay so bestie, welcome to tomoyo_write_control β€” the write() girlie for the /sys/kernel/security/tomoyo/ interface. she's from the Kernel API Manual, she's lowkey iconic, and we're gonna get through her together. 🫢


✨ NAME ✨

tomoyo_write_control β€” literally the write() for the /sys/kernel/security/tomoyo/ interface. that's the whole vibe. no cap. πŸ’–


🌸 SYNOPSIS 🌸

ssize_t tomoyo_write_control (struct tomoyo_io_buffer *head , const char
__user *buffer , const int buffer_len );

three args, one ssize_t coming back at you. we love a signature that eats. ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • head β€” pointer to struct tomoyo_io_buffer. yes queen, the whole struct. πŸŽ€
  • buffer β€” pointer to the buffer you're reading from. it's const char __user *, so hands off the contents bestie. πŸ™ˆ
  • buffer_len β€” the size of that buffer. const int, very demure, very mindful. ⭐

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the tea: it returns buffer_len on success πŸ’– and a negative value otherwise πŸ’€. that's it. that's the function. short and slay. periodt.

ngl if you get a negative value back, something did not pass the vibe check β€” that's your error signal, don't ignore her. 😭

🌈 SEE ALSO 🌈

bestie, sit down, this list is long long. she's connected to literally everyone. iykyk. πŸ”₯


okay that's the whole page, you ate that πŸ’… β€” big slay to ./security/tomoyo for shipping this in October 2026, mwah, kisses to the version stamp, and remember: return buffer_len; on success and negative otherwise, fr fr. bye bestie πŸ¦‹πŸ’œπŸŽ€

πŸ“¦ where this page comes from