Searched refs:sect_attrs (Results 1 – 3 of 3) sorted by relevance
63 static void free_sect_attrs(struct module_sect_attrs *sect_attrs) in free_sect_attrs() argument67 for (section = 0; section < sect_attrs->nsections; section++) in free_sect_attrs()68 kfree(sect_attrs->attrs[section].battr.attr.name); in free_sect_attrs()69 kfree(sect_attrs); in free_sect_attrs()75 struct module_sect_attrs *sect_attrs; in add_sect_attrs() local83 size[0] = ALIGN(struct_size(sect_attrs, attrs, nloaded), in add_sect_attrs()84 sizeof(sect_attrs->grp.bin_attrs[0])); in add_sect_attrs()85 size[1] = (nloaded + 1) * sizeof(sect_attrs->grp.bin_attrs[0]); in add_sect_attrs()86 sect_attrs = kzalloc(size[0] + size[1], GFP_KERNEL); in add_sect_attrs()87 if (!sect_attrs) in add_sect_attrs()[all …]
94 sect_attrs = module['sect_attrs'].dereference()98 attrs = sect_attrs['attrs']101 for n in range(int(sect_attrs['nsections']))}
480 struct module_sect_attrs *sect_attrs; member