tomoyo_read_control(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tomoyo_read_control(9) πŸ’…

okay bestie, buckle up, because this lil page lives in the Kernel API Manual and it's honestly so niche and so specific and we love that for it 🫢


✨ NAME ✨

tomoyo_read_control β€” it's the read() of the /sys/kernel/security/tomoyo/ interface, no cap. that's the whole job description πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

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

πŸŽ€ ARGUMENTS πŸŽ€

  • head β€” a pointer to struct tomoyo_io_buffer. yes it's called head. yes that's a lot of pressure for one pointer πŸ’€
  • buffer β€” a pointer to the buffer you're writing to. icon behavior, honestly.
  • buffer_len β€” the size of that buffer. know your limits, queen πŸ‘‘

🌸 DESCRIPTION 🌸

so the actual tea: it returns bytes read on success, and a negative value otherwise 😭 that's it. that's the function. short and mysterious and honestly kind of main character energy.


🌈 SEE ALSO 🌈

the whole friend group is here, and they all showed up for this one β€” shoutout to Kernel file ./security/tomoyo/common.c for hosting the party πŸŽ‰


ngl, if you read all sixty-five of those you are a stronger person than me 😭 but like... respectfully. obsessed with the dedication πŸ’œ

okay that's the whole page!! and before you go β€” this masterpiece shipped straight out of ./security/tomoyo and it's dated October 2026, so go forth and read() responsibly, bestie πŸŒŸπŸ’–βœ¨

πŸ“¦ where this page comes from