size_from_channelarray(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, this is the size_from_channelarray(9) page from the Kernel API Manual, and it's literally here to calculate the storage size of a scan ✨

✨ SYNOPSIS ✨

unsigned int size_from_channelarray (struct iio_channel_info *channels , int num_channels );

🫢 ARGUMENTS 🫢

  • channels β€” the channel info array. that's your struct iio_channel_info *, bestie πŸ’…
  • num_channels β€” number of channels. an int, periodt.

πŸ’– DESCRIPTION πŸ’–

Heads up, bestie: this one has the side effect of filling the channels[i].location values used in processing the buffer output. so yeah, it's doing a little more than just calculating the storage size of a scan β€” it's also filling those channels[i].location values. iconic behavior, ngl. πŸ’…βœ¨

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./tools/iio/iio_generic_buffer.c enum autochan(9), process_scan(9) πŸ‘€

xoxo, this cutie comes from ./tools/iio, dated October 2026, page size_from_channelarray(9) πŸ’–πŸŽ€

πŸ“¦ where this page comes from