summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2010-03-06 04:44:15 +0000
committerEric Van Hensbergen <ericvh@gmail.com>2010-03-13 08:57:29 -0600
commit86c8437383acd85c05ec7c9a004f59fe7ac9821a (patch)
tree05c2b805162f0aaf8f7d52e0b7fab4e12f8dcb75 /include
parent97ee9b0257402f4731b55dfea42f24d26d793ddf (diff)
downloadlinux-86c8437383acd85c05ec7c9a004f59fe7ac9821a.tar.bz2
net/9p: Add sysfs mount_tag file for virtio 9P device
This adds a new file for virtio 9P device. The file contain details of the mount device name that should be used to mount the 9P file system. Ex: /sys/devices/virtio-pci/virtio1/mount_tag file now contian the tag name to be used to mount the 9P file system. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/virtio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/virtio.h b/include/linux/virtio.h
index f508c651e53d..40d1709bdbf4 100644
--- a/include/linux/virtio.h
+++ b/include/linux/virtio.h
@@ -98,6 +98,7 @@ struct virtio_device {
void *priv;
};
+#define dev_to_virtio(dev) container_of(dev, struct virtio_device, dev)
int register_virtio_device(struct virtio_device *dev);
void unregister_virtio_device(struct virtio_device *dev);