Searched refs:sect_attrs (Results 1 – 2 of 2) sorted by relevance
1286 static void free_sect_attrs(struct module_sect_attrs *sect_attrs) in free_sect_attrs() argument1290 for (section = 0; section < sect_attrs->nsections; section++) in free_sect_attrs()1291 kfree(sect_attrs->attrs[section].name); in free_sect_attrs()1292 kfree(sect_attrs); in free_sect_attrs()1298 struct module_sect_attrs *sect_attrs; in add_sect_attrs() local1306 size[0] = ALIGN(sizeof(*sect_attrs) in add_sect_attrs()1307 + nloaded * sizeof(sect_attrs->attrs[0]), in add_sect_attrs()1308 sizeof(sect_attrs->grp.attrs[0])); in add_sect_attrs()1309 size[1] = (nloaded + 1) * sizeof(sect_attrs->grp.attrs[0]); in add_sect_attrs()1310 sect_attrs = kzalloc(size[0] + size[1], GFP_KERNEL); in add_sect_attrs()[all …]
313 struct module_sect_attrs *sect_attrs; member