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

Stephen Hemminger stephen at networkplumber.org
Wed Jan 24 23:42:30 UTC 2018


On Wed, 10 Jan 2018 17:42:56 +0100
Greg KH <gregkh at linuxfoundation.org> wrote:

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

I thought it better to put in uio documentation where it was likely to be seen.
Also file doesn't exist until sub channel is created on UIO device.


More information about the devel mailing list