]> git.karo-electronics.de Git - karo-tx-linux.git/commit
virtio_config: Add virtio_config_val_len()
authorSasha Levin <levinsasha928@gmail.com>
Sun, 14 Aug 2011 14:52:32 +0000 (17:52 +0300)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Oct 2011 01:01:19 +0000 (12:01 +1100)
commit1f5881f131d82962799ef82fa32fed1a5530e7e0
tree3d8480525a1c21e335241f9beee46fdf9baa783f
parent5f265f867a2e6702a33b930ea9c5cdf7236fc1f7
virtio_config: Add virtio_config_val_len()

This patch adds virtio_config_val_len() which allows retrieving variable
length data from the virtio config space only if a specific feature is on.

Cc: Amit Shah <amit.shah@redhat.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: virtualization@lists.linux-foundation.org
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/linux/virtio_config.h