read_sysfs_float(9)
π read_sysfs_float(9) β Kernel API Manual π
πΈ NAME πΈ
read_sysfs_float β read a float value from file
β¨ SYNOPSIS β¨
int read_sysfs_float (const char *filename , const char *basedir , float
*val );
π ARGUMENTS π
filenameβ name of file to read from. That's the file, bestie.basedirβ the sysfs directory in which the file is to be found. Like, the folder where your fave file lives.valβ output the read float value. It's where the read float value gets output. π
π¦ DESCRIPTION π¦
okay so here's the vibe: it returns a value >= 0 on success, otherwise a negative error code. That's the whole thing. No cap. β¨
π SEE ALSO π
Kernel file ./tools/iio/iio_utils.c β go peek:
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(9)write_sysfs_int_and_verify(9)write_sysfs_string_and_verify(9)write_sysfs_string(9)read_sysfs_posint(9)read_sysfs_string(9)
okay bye bestie π«Ά β source/version is ./tools/iio, dated October 2026, and the page is read_sysfs_float(9). mwah π
π¦ 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