iio_push_to...ts_unaligned(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– iio_push_to...ts_unaligned(9) πŸ’–

okay so this is the Kernel API Manual page for iio_push_to_buffers_with_ts_unaligned, and it's giving β€œspecial buffer-pushing variant” energy. Buckle up, bestie. 🫢

🌸 NAME 🌸

iio_push_to_buffers_with_ts_unaligned β€” push to registered buffer, no alignment or space requirements. No cap. ✨

✨ SYNOPSIS ✨

int iio_push_to_buffers_with_ts_unaligned (struct iio_dev *indio_dev , const void *data , size_t data_sz , s64 timestamp );

🫢 ARGUMENTS 🫢

  • indio_dev β€” the iio_dev structure for the device. That's your device's little main-character struct. πŸ‘‘
  • data β€” channel data, and it is excluding the timestamp. Timestamp stays out of this pile, periodt. 🚫
  • data_sz β€” size of data. Literally how big the data is. πŸ“
  • timestamp β€” timestamp for the sample data. The when of the sample. ⏰

πŸ’… DESCRIPTION πŸ’…

This special variant of iio_push_to_buffers_with_timestamp does not require space for the timestamp, and it does not require 8 byte alignment of data. Slay for flexibility. ✨

But not me warning you: it does require an allocation on the first call and additional copies on all calls, so it should be avoided if possible. That's the catch, bestie. 😭

🚨 high-maintenance alert: allocation on the first call + extra copies every call = avoid this if you can. Not dramatic, just true. πŸ’€

😴 CONTEXT 😴

May sleep. That's the whole note. πŸ’€

πŸŽ€ RETURN πŸŽ€

  • 0 on success βœ…
  • negative error code on failure ❌

πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./drivers/iio/industrialio-buffer.c β€” and the bestie lineup is:


cute sign-off: source/version is ./drivers/iio, date is October 2026, and this page has officially left the chat. bye bestie πŸ«ΆπŸ’–

πŸ“¦ where this page comes from