mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
virtio: document ENOSPC
drivers handle ENOSPC specially since it's an error one can get from a working VQ. Document the semantics. Message-Id: <2e6ec46b8d5e6755be291cec8e2ec57ef286e97b.1748356035.git.mst@redhat.com> Reported-by: Parav Pandit <parav@nvidia.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Parav Pandit <parav@nvidia.com>
This commit is contained in:
parent
2507789a72
commit
482bd84f1f
1 changed files with 4 additions and 0 deletions
|
@ -2296,6 +2296,10 @@ static inline int virtqueue_add(struct virtqueue *_vq,
|
|||
* at the same time (except where noted).
|
||||
*
|
||||
* Returns zero or a negative error (ie. ENOSPC, ENOMEM, EIO).
|
||||
*
|
||||
* NB: ENOSPC is a special code that is only returned on an attempt to add a
|
||||
* buffer to a full VQ. It indicates that some buffers are outstanding and that
|
||||
* the operation can be retried after some buffers have been used.
|
||||
*/
|
||||
int virtqueue_add_sgs(struct virtqueue *_vq,
|
||||
struct scatterlist *sgs[],
|
||||
|
|
Loading…
Add table
Reference in a new issue