On Wed, 10 Jan 2018 17:42:56 +0100
Greg KH <gre...@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 <sthem...@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.
_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to