diff options
| author | David Lechner <dlechner@baylibre.com> | 2025-09-17 00:02:56 +0300 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-10-13 10:37:24 +0300 |
| commit | 748ed9fc8596015e7e136877465919b89c7d08d6 (patch) | |
| tree | 21e9ee2badaaac93739b26c9c408c64bfdad7af8 /include/linux | |
| parent | d87b03ced9e989a516cc000e1e65f4eb4d6d46aa (diff) | |
| download | linux-748ed9fc8596015e7e136877465919b89c7d08d6.tar.xz | |
iio: buffer: document store_to() callback may be called in any context
Document that the struct iio_buffer_access_funcs.store_to() callback
must be safe to call from any context since it is called from
iio_push_to_buffer() which may be called from any context.
Signed-off-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/iio/buffer_impl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/iio/buffer_impl.h b/include/linux/iio/buffer_impl.h index e72552e026f3..0daff9ff20ce 100644 --- a/include/linux/iio/buffer_impl.h +++ b/include/linux/iio/buffer_impl.h @@ -24,7 +24,8 @@ struct sg_table; /** * struct iio_buffer_access_funcs - access functions for buffers. - * @store_to: actually store stuff to the buffer + * @store_to: actually store stuff to the buffer - must be safe to + * call from any context (e.g. must not sleep). * @read: try to get a specified number of bytes (must exist) * @data_available: indicates how much data is available for reading from * the buffer. |
