[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250912-iio-doc-push-to-buffers-context-v1-0-c4aad013d96e@baylibre.com>
Date: Fri, 12 Sep 2025 11:05:51 -0500
From: David Lechner <dlechner@...libre.com>
To: Jonathan Cameron <jic23@...nel.org>,
Nuno Sá <nuno.sa@...log.com>,
Andy Shevchenko <andy@...nel.org>
Cc: linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org,
Daniel Lezcano <daniel.lezcano@...aro.org>,
Andy Shevchenko <andy.shevchenko@...il.com>,
David Lechner <dlechner@...libre.com>
Subject: [PATCH 0/7] iio: buffer: document calling context when pushing to
buffers
It came up in a recent discussion [1] that we need to be careful about
the calling context for various iio_push_to_buffer*() functions. Here is
a series that adds some documentation in a number of places to make this
a bit more visible.
[1]: https://lore.kernel.org/linux-iio/CAHp75Vc8u2N2AHWtnPRmRXWKN3u8Qi=yvx5afbFh4NLNb8-y9A@mail.gmail.com/
---
David Lechner (7):
iio: buffer: document iio_push_to_buffers_with_ts_unaligned() may sleep
iio: buffer: iio_push_to_buffers_with_ts_unaligned() might_sleep()
iio: buffer: document iio_push_to_buffers_with_ts()
iio: buffer: deprecated iio_push_to_buffers_with_timestamp()
iio: buffer: document iio_push_to_buffers() calling context
iio: buffer: document store_to() callback may be called in any context
iio: buffer: document that buffer callback must be context safe
drivers/iio/buffer/industrialio-buffer-cb.c | 1 +
drivers/iio/industrialio-buffer.c | 8 ++++++++
include/linux/iio/buffer.h | 22 +++++++++++++++++-----
include/linux/iio/buffer_impl.h | 3 ++-
include/linux/iio/consumer.h | 3 ++-
5 files changed, 30 insertions(+), 7 deletions(-)
---
base-commit: b8902d55155cec7bd743dc1129e0b32e70b1751f
change-id: 20250912-iio-doc-push-to-buffers-context-df3ca98fe0df
Best regards,
--
David Lechner <dlechner@...libre.com>
Powered by blists - more mailing lists