]> 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>
Fri, 26 Aug 2011 00:23:45 +0000 (10:23 +1000)
commit35edf7fc8f1fede2bf648744bd37dca9bc65d390
tree69653d5fefa5c6d29e7c493da7613f205af6923e
parented88c0436f3db87d5c33776b243c674ffcd934d5
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