IIO_DECLARE_...FFER_WITH_TS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… IIO_DECLARE_DMA_BUFFER_WITH_TS(9) πŸ’…

okay so bestie, welcome to this page from the Kernel API Manual, and the main character is IIO_DECLARE_DMA_BUFFER_WITH_TS β€” it's giving β€œdeclare a DMA-aligned buffer with timestamp.” The header shortens the name to IIO_DECLARE_...FFER_WITH_TS(9), iykyk. πŸŽ€βœ¨


✨ NAME ✨

IIO_DECLARE_DMA_BUFFER_WITH_TS β€” Declare a DMA-aligned buffer with timestamp. slay.

🌸 SYNOPSIS 🌸

IIO_DECLARE_DMA_BUFFER_WITH_TS (type , name , count );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • type β€” the element type of the buffer, obvs.
  • name β€” the identifier name of the buffer.
  • count β€” the number of elements in the buffer.

πŸ”₯ DESCRIPTION πŸ”₯

So it's literally the same as IIO_DECLARE_BUFFER_WITH_TS, but it uses __aligned(IIO_DMA_MINALIGN) to ensure that the buffer does not share cachelines with anything that comes before it in a struct. That's the whole point, no cap. ✨

🚨 warning bestie: this should not be used for stack-allocated buffers, because stack memory cannot generally be used for DMA. That's a hard no, not a vibe check. πŸ’€

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./include/linux/iio/iio.h, plus this whole friend group:


okay that's the tea! πŸ“ This page lives at ./include/linux/iio, dated October 2026, and the manual header/footer calls it IIO_DECLARE_...FFER_WITH_TS(9). Bye bestie, go make that DMA buffer iconic. πŸ’–βœ¨

πŸ“¦ where this page comes from