Lines Matching refs:notes_attrs
1620 static void free_notes_attrs(struct module_notes_attrs *notes_attrs, in free_notes_attrs() argument
1623 if (notes_attrs->dir) { in free_notes_attrs()
1625 sysfs_remove_bin_file(notes_attrs->dir, in free_notes_attrs()
1626 ¬es_attrs->attrs[i]); in free_notes_attrs()
1627 kobject_put(notes_attrs->dir); in free_notes_attrs()
1629 kfree(notes_attrs); in free_notes_attrs()
1635 struct module_notes_attrs *notes_attrs; in add_notes_attrs() local
1652 notes_attrs = kzalloc(struct_size(notes_attrs, attrs, notes), in add_notes_attrs()
1654 if (notes_attrs == NULL) in add_notes_attrs()
1657 notes_attrs->notes = notes; in add_notes_attrs()
1658 nattr = ¬es_attrs->attrs[0]; in add_notes_attrs()
1674 notes_attrs->dir = kobject_create_and_add("notes", &mod->mkobj.kobj); in add_notes_attrs()
1675 if (!notes_attrs->dir) in add_notes_attrs()
1679 if (sysfs_create_bin_file(notes_attrs->dir, in add_notes_attrs()
1680 ¬es_attrs->attrs[i])) in add_notes_attrs()
1683 mod->notes_attrs = notes_attrs; in add_notes_attrs()
1687 free_notes_attrs(notes_attrs, i); in add_notes_attrs()
1692 if (mod->notes_attrs) in remove_notes_attrs()
1693 free_notes_attrs(mod->notes_attrs, mod->notes_attrs->notes); in remove_notes_attrs()