iio_format_value(9)
This is iio_format_value(9) from the Kernel API Manual β yes bestie, we're doing kernel API formatting today, and it's lowkey iconic. πβ¨
πΈ NAME πΈ
iio_format_value β formats a IIO value into its string representation. Periodt. π
π¦ SYNOPSIS π¦
ssize_t iio_format_value (char *buf , unsigned int type , int size , int
*vals );
π ARGUMENTS π
bufβ the buffer to which the formatted value gets written, which is assumed to be big enough (i.e.PAGE_SIZE). No cap, it trusts you. πtypeβ one of theIIO_VAL_*constants. This decides how thevalandval2parameters are formatted. Slay, type does the choosing. β¨sizeβ number of IIO value entries contained invals. Count them, bestie. π’valsβ pointer to the values; exact meaning depends on thetypeparameter. It's giving "context is everything." π
π₯ RETURN π₯
0 by default, a negative number on failure, or the total number of characters written for a type that belongs to the IIO_VAL_* constant. That's the whole return vibe. π
π SEE ALSO π
- Kernel file β
./drivers/iio/industrialio-core.c iio_device_id(9)iio_buffer_enabled(9)iio_find_channel_from_si(9)iio_device_set_clock(9)iio_device_get_clock(9)iio_get_time_ns(9)iio_read_mount_matrix(9)__iio_str_to_fixpoint(9)iio_str_to_fixpoint(9)iio_free_chan_devattr_list(9)iio_device_alloc(9)iio_device_free(9)devm_iio_device_alloc(9)iio_chrdev_open(9)iio_chrdev_release(9)iio_active_scan_mask_index(9)iio_device_unregister(9)__iio_dev_mode_lock(9)__iio_dev_mode_unlock(9)iio_device_get_current_mode(9)
Source/version: ./drivers/iio Β· Date: October 2026 Β· Page: iio_format_value(9) β later bestie, stay formatted π«Άπ
π¦ 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