Go to the documentation of this file.
52 #define RAID_MAX_RESYNC (10000)
54 #define DEFINE_RAID_ATTRIBUTE(type, attr) \
56 raid_set_##attr(struct raid_template *r, struct device *dev, type value) { \
57 struct device *device = \
58 attribute_container_find_class_device(&r->raid_attrs.ac, dev);\
59 struct raid_data *rd; \
61 rd = dev_get_drvdata(device); \
65 raid_get_##attr(struct raid_template *r, struct device *dev) { \
66 struct device *device = \
67 attribute_container_find_class_device(&r->raid_attrs.ac, dev);\
68 struct raid_data *rd; \
70 rd = dev_get_drvdata(device); \