iio_str_to_nano(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so this is iio_str_to_nano(9) from the Kernel API Manual πŸ’… β€” it parses a fixed-point string to get an IIO_VAL_INT_PLUS_NANO value, and yes that whole constant is the vibe.

πŸ¦‹ SYNOPSIS πŸ¦‹

int iio_str_to_nano (const char *str , s64 *nano );

πŸŽ€ ARGUMENTS πŸŽ€

  • str β€” the string you're parsing, bestie.
  • nano β€” the number as an integer.

πŸ’… DESCRIPTION πŸ’…

It returns 0 on success, or a negative error code if the string cound not be parsed. That's the whole bit: success is 0, failure is a negative error code 😭.

πŸ”₯ SEE ALSO πŸ”₯


okay bye bestie 🫢 this page's source/version is ./drivers/iio/test, it's dated October 2026, and we were reading iio_str_to_nano(9) the whole time πŸ’–βœ¨

πŸ“¦ where this page comes from