Searched refs:attr_group (Results 1 – 3 of 3) sorted by relevance
54 static struct attribute_group attr_group = { variable63 return sysfs_create_group(power_kobj, &attr_group); in pm_init()
222 struct attribute_group *attr_group; in update_events_in_group() local270 attr_group = kzalloc(sizeof(*attr_group), GFP_KERNEL); in update_events_in_group()271 if (!attr_group) { in update_events_in_group()286 kfree(attr_group); in update_events_in_group()291 attr_group->name = "events"; in update_events_in_group()292 attr_group->attrs = attrs; in update_events_in_group()326 pmu->attr_groups[IMC_EVENT_ATTR] = attr_group; in update_events_in_group()
995 } *attr_group; in uncore_type_init() local998 attr_group = kzalloc(struct_size(attr_group, attrs, i + 1), in uncore_type_init()1000 if (!attr_group) in uncore_type_init()1003 attr_group->group.name = "events"; in uncore_type_init()1004 attr_group->group.attrs = attr_group->attrs; in uncore_type_init()1007 attr_group->attrs[j] = &type->event_descs[j].attr.attr; in uncore_type_init()1009 type->events_group = &attr_group->group; in uncore_type_init()