lkml.org 
[lkml]   [2010]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH] virtio_blk.c: Add documentation for vring_enable_cb()
Date
From: Jes Sorensen <Jes.Sorensen@redhat.com>

Hi,

This patch adds a bit of documentation to vring_enable_cb() to make it
crystal clear that the function returns false when there is more work
to do and true when the queue is empty.

I wasted several hours trying to figure out why a piece of code wasn't
working due to this, and I know others hit the same problem. Hopefully
this can save a bit of suffering for others in the future.

Cheers,
Jes


Jes Sorensen (1):
Add documentation for vring_enable_cb()

drivers/virtio/virtio_ring.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)



\
 
 \ /
  Last update: 2010-05-19 17:53    [W:0.036 / U:1.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site