[openib-general] Re: [PATCH][RFC/v1][9/12] Add InfiniBand userspace MAD support

Greg KH greg at kroah.com
Mon Nov 22 23:43:37 PST 2004


On Mon, Nov 22, 2004 at 10:45:02PM -0800, Roland Dreier wrote:
>     Greg> class_simple_device_add returns a pointer to a struct
>     Greg> class_device * that you can then use to create a file in
>     Greg> sysfs with.  That should be what you're looking for.
> 
> Shouldn't the ABI version be an attribute in /sys/class/infiniband_mad
> rather than being per-device?

Yes, it probably should be.  Hm, no, we don't allow you to put class
specific files if you use the class_simple API, sorry I misread your
question.  You can just handle the class yourself and use the
CLASS_ATTR() macro to define your api version function.

thanks,

greg k-h



More information about the general mailing list