Home
last modified time | relevance | path

Searched refs:sect_attrs (Results 1 – 1 of 1) sorted by relevance

/kernel/module/
Dsysfs.c63 static void free_sect_attrs(struct module_sect_attrs *sect_attrs) in free_sect_attrs() argument
67 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() local
83 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 …]