write_sysfs_int(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Okay bestie, welcome to write_sysfs_int(9) from the Kernel API Manual πŸ’… This one is exactly what it sounds like: write_sysfs_int β€” write an integer value to a sysfs file. No cap. ✨


🌸 SYNOPSIS 🌸

int write_sysfs_int (const char *filename , const char *basedir , int
       val );

πŸŽ€ ARGUMENTS πŸŽ€

  • filename β€” name of the file to write to. That's the target, bestie. 🎯
  • basedir β€” the sysfs directory in which the file is to be found. Like, where the file lives. 🏠
  • val β€” integer value to write to file. The int in question. πŸ”’

πŸ¦‹ DESCRIPTION πŸ¦‹

Returns a value >= 0 on success, otherwise a negative error code. That's the whole vibe check: non-negative means slay, negative means something went sideways. 😭


✨ SEE ALSO ✨

Kernel file ./tools/iio/iio_utils.c β€” plus these other kernel besties:


And that's the page, bestie 🫢 Source/version situation: ./tools/iio, dated October 2026 β€” iconic. πŸ’œ

πŸ“¦ where this page comes from