mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 19:13:47 +02:00
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>
This commit is contained in:
parent
d87b03ced9
commit
748ed9fc85
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user