summaryrefslogtreecommitdiff
path: root/Documentation/driver-api/uio-howto.rst
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2018-02-05 21:40:27 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-06 20:57:17 +0300
commit37b96a4931dba07cebbf07092e55d1562155412b (patch)
tree865b31a14739197399ccc79d62d9e5ad555dbca6 /Documentation/driver-api/uio-howto.rst
parentcf21be919c5960da2eb7bc91f8056adb27b56712 (diff)
downloadlinux-37b96a4931dba07cebbf07092e55d1562155412b.tar.xz
uio_hv_generic: support sub-channels
Use sysfs to allow supporting sub-channels. The userspace application makes request to host to create sub-channels and the UIO kernel driver populates the sysfs per-channel directory with a binary attribute file that can be used to read/write ring. Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/driver-api/uio-howto.rst')
-rw-r--r--Documentation/driver-api/uio-howto.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/driver-api/uio-howto.rst b/Documentation/driver-api/uio-howto.rst
index 693e3bd84e79..92056c20e070 100644
--- a/Documentation/driver-api/uio-howto.rst
+++ b/Documentation/driver-api/uio-howto.rst
@@ -709,6 +709,11 @@ The vmbus device regions are mapped into uio device resources:
3) Network receive buffer region
4) Network send buffer region
+If a subchannel is created by a request to host, then the uio_hv_generic
+device driver will create a sysfs binary file for the per-channel ring buffer.
+For example:
+ /sys/bus/vmbus/devices/3811fe4d-0fa0-4b62-981a-74fc1084c757/channels/21/ring
+
Further information
===================