[PATCH v3 6/6] uio_hv_generic: support sub-channels

Greg KH gregkh at linuxfoundation.org
Wed Jan 10 16:42:56 UTC 2018


On Tue, Jan 09, 2018 at 12:57:33PM -0800, Stephen Hemminger wrote:
> 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 at microsoft.com>
> ---
>  Documentation/driver-api/uio-howto.rst |  5 ++
>  drivers/uio/uio_hv_generic.c           | 95 ++++++++++++++++++++++++++++++++--
>  2 files changed, 97 insertions(+), 3 deletions(-)
> 
> diff --git a/Documentation/driver-api/uio-howto.rst b/Documentation/driver-api/uio-howto.rst
> index 693e3bd84e79..7d36a50c0484 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_buffer
> +
>  Further information
>  ===================
>  

No Documentation/ABI/ update for this new sysfs file?



More information about the devel mailing list