iio_format_value(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 the IIO_VAL_* constants. This decides how the val and val2 parameters are formatted. Slay, type does the choosing. ✨
  • size β€” number of IIO value entries contained in vals. Count them, bestie. πŸ”’
  • vals β€” pointer to the values; exact meaning depends on the type parameter. 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 πŸ’œ


Source/version: ./drivers/iio Β· Date: October 2026 Β· Page: iio_format_value(9) β€” later bestie, stay formatted πŸ«ΆπŸ’–

πŸ“¦ where this page comes from