sect_attrs 433 include/linux/module.h struct module_sect_attrs *sect_attrs; sect_attrs 1530 kernel/module.c static void free_sect_attrs(struct module_sect_attrs *sect_attrs) sect_attrs 1534 kernel/module.c for (section = 0; section < sect_attrs->nsections; section++) sect_attrs 1535 kernel/module.c kfree(sect_attrs->attrs[section].name); sect_attrs 1536 kernel/module.c kfree(sect_attrs); sect_attrs 1542 kernel/module.c struct module_sect_attrs *sect_attrs; sect_attrs 1550 kernel/module.c size[0] = ALIGN(struct_size(sect_attrs, attrs, nloaded), sect_attrs 1551 kernel/module.c sizeof(sect_attrs->grp.attrs[0])); sect_attrs 1552 kernel/module.c size[1] = (nloaded + 1) * sizeof(sect_attrs->grp.attrs[0]); sect_attrs 1553 kernel/module.c sect_attrs = kzalloc(size[0] + size[1], GFP_KERNEL); sect_attrs 1554 kernel/module.c if (sect_attrs == NULL) sect_attrs 1558 kernel/module.c sect_attrs->grp.name = "sections"; sect_attrs 1559 kernel/module.c sect_attrs->grp.attrs = (void *)sect_attrs + size[0]; sect_attrs 1561 kernel/module.c sect_attrs->nsections = 0; sect_attrs 1562 kernel/module.c sattr = §_attrs->attrs[0]; sect_attrs 1563 kernel/module.c gattr = §_attrs->grp.attrs[0]; sect_attrs 1573 kernel/module.c sect_attrs->nsections++; sect_attrs 1583 kernel/module.c if (sysfs_create_group(&mod->mkobj.kobj, §_attrs->grp)) sect_attrs 1586 kernel/module.c mod->sect_attrs = sect_attrs; sect_attrs 1589 kernel/module.c free_sect_attrs(sect_attrs); sect_attrs 1594 kernel/module.c if (mod->sect_attrs) { sect_attrs 1596 kernel/module.c &mod->sect_attrs->grp); sect_attrs 1599 kernel/module.c free_sect_attrs(mod->sect_attrs); sect_attrs 1600 kernel/module.c mod->sect_attrs = NULL; sect_attrs 1644 kernel/module.c if (!mod->sect_attrs) sect_attrs 1669 kernel/module.c nattr->attr.name = mod->sect_attrs->attrs[loaded].name;