Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

David Lechner and committed by
Jonathan Cameron
748ed9fc d87b03ce

+2 -1
+2 -1
include/linux/iio/buffer_impl.h
··· 24 24 25 25 /** 26 26 * struct iio_buffer_access_funcs - access functions for buffers. 27 - * @store_to: actually store stuff to the buffer 27 + * @store_to: actually store stuff to the buffer - must be safe to 28 + * call from any context (e.g. must not sleep). 28 29 * @read: try to get a specified number of bytes (must exist) 29 30 * @data_available: indicates how much data is available for reading from 30 31 * the buffer.