smk_write_logging(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– smk_write_logging(9) β€” Kernel API Manual πŸ’–

okay so bestie, we're in the Kernel API Manual today and this page is all about smk_write_logging(9). it's a tiny one, a little baby function, but it's the write() half of /smack/logging, so it matters. iykyk πŸŽ€


✨ NAME ✨

smk_write_logging β€” literally just the write() for /smack/logging πŸ¦‹


🌸 SYNOPSIS 🌸

ssize_t smk_write_logging (struct file *file , const char __user *buf ,
size_t count , loff_t *ppos );

πŸŽ€ ARGUMENTS πŸŽ€

  • file β€” the file pointer. and bestie… it's not actually used. it's there, it's invited to the party, it's just not dancing πŸ™ˆ
  • buf β€” where to get the data from. the goods live here πŸ’…
  • count β€” bytes sent. how many of them. the number. ⭐
  • ppos β€” where to start. your starting point, your origin story 🌈

πŸ’œ DESCRIPTION πŸ’œ

returns the number of bytes written, or an error code, as appropriate. that's the whole vibe, no cap. ✨


πŸ‘‘ SEE ALSO πŸ‘‘

it's giving extended universe, fr fr. the kernel file is ./security/smack/smackfs.c, and here's the whole squad:

like… that's the entire friend group and they ALL said see also. obsessed. πŸ’€πŸ«Ά


ngl this page is short but she's iconic. smk_read_logging(9) is her sibling, go say hi. πŸ”₯

and that's the whole page, bestie! it lives in the source dir ./security/smack, and this particular drop is dated October 2026. slay, go read some kernel code πŸ’–πŸŒŸπŸ“

πŸ“¦ where this page comes from