Messages in this thread | | | From | Roland Dreier <> | Date | Thu, 04 Nov 2004 09:40:21 -0800 | Subject | Re: patch for sysfs in the cyclades driver |
| |
Marcelo> ------ Greg answer was:
Greg> For a driver only attribute, you want them to show up in the Greg> place for the driver (like under Greg> /sys/bus/pci/driver/MY_FOO_DRIVER/). To do that use the Greg> DRIVER_ATTR() and the driver_add_file() functions. For Greg> examples, see the other drivers that use these functions.
I think Greg may have misunderstood the question and told you how to expose per-driver attributes. But I think the attributes you want really are per-device and should be attached to the class_device, not the driver.
- Roland - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |