Re: [patch v2 13/37] add rxe_verbs.c
From: Greg KH <hidden>
Date: 2011-08-15 16:13:09
On Mon, Aug 15, 2011 at 06:02:23PM +0200, Bart Van Assche wrote:
On Mon, Aug 15, 2011 at 5:07 PM, Greg KH [off-list ref] wrote:quoted
For a device, you HAVE to be creating these attributes before the hotplug event is sent out, and to do that, you need to set the correct pointer before registering the device. See the documentation for the driver model for how to do this properly.Are you referring to the "groups" member in "struct device" ?
Yes, or the one in the class or bus structure, depending on what you are wanting to create.
The source files I have found so far that fill in this member in a struct device are: drivers/s390/cio/css.c and drivers/usb/core/endpoint.c. But I haven't found anything about that member in the documents under Documentation/driver-model. Is it just me who's again missing something ?
The docbook comments in include/linux/device.h? greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html