]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_ring: virtqueue_add_outbuf / virtqueue_add_inbuf.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 20 Mar 2013 05:14:26 +0000 (15:44 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 20 Mar 2013 05:14:52 +0000 (15:44 +1030)
commit781caf611ed6ea974e4247a6ddeaf8e7e573c0aa
tree5031caab94e52b30e48515e881ea87a32daaeaeb
parent9601e619b2509b448f3fb1612e1be3d54f852dee
virtio_ring: virtqueue_add_outbuf / virtqueue_add_inbuf.

These are specialized versions of virtqueue_add_buf(), which cover
over 80% of cases and are far clearer.

In particular, the scatterlists passed to these functions don't have
to be clean (ie. we ignore end markers).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/virtio/virtio_ring.c
include/linux/virtio.h