write_sysfs_int(9)
π 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:
iioutils_break_up_name(9)iioutils_get_type(9)iioutils_get_param_float(9)bsort_channel_array_by_index(9)build_channel_array(9)find_type_by_name(9)write_sysfs_int_and_verify(9)write_sysfs_string_and_verify(9)write_sysfs_string(9)read_sysfs_posint(9)read_sysfs_float(9)read_sysfs_string(9)
And that's the page, bestie π«Ά Source/version situation: ./tools/iio, dated October 2026 β iconic. π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms