build_channel_array(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ build_channel_array β€” like, the manual page πŸ’…

okay so this is a page from the Kernel API Manual, bestie β€” section 9, kernel API vibes only. sit down, grab a strawberry πŸ“, and let's get into it.


🌸 NAME 🌸

build_channel_array β€” literally the function that figures out what channels are present πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

int build_channel_array (const char *device_dir , int buffer_idx ,
       struct iio_channel_info **ci_array , int *counter );

πŸŽ€ ARGUMENTS πŸŽ€

  • device_dir β€” the IIO device directory in sysfs. that's the spot she lives in, periodt πŸ’–
  • buffer_idx β€” the IIO buffer for this channel array. yes, specifically this one ✨
  • ci_array β€” output: the resulting array of iio_channel_info. she fills this in for you 🫢
  • counter β€” output: the amount of array elements. so you know how many you got, no cap πŸ”’

πŸ’œ DESCRIPTION πŸ’œ

Returns 0 on success β€” iconic, flawless, ate πŸ’…. Otherwise it hands back a negative error code, which is the vibe check failing, and you should probably go look at that 😭.


🌈 SEE ALSO 🌈

Kernel file ./tools/iio/iio_utils.c β€” that's where the magic lives, iykyk πŸ‘€

and also, all of these besties:


fr fr, that's the whole page. no filler, no skips, every single reference accounted for 🧚

okay bye ily, this page came from ./tools/iio and it's dated October 2026 β€” mwah, see u in the next one πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from