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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
> ---
>  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?

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux