Lines Matching refs:notes_attrs
1245 static void free_notes_attrs(struct module_notes_attrs *notes_attrs,
1248 if (notes_attrs->dir) {
1250 sysfs_remove_bin_file(notes_attrs->dir,
1251 ¬es_attrs->attrs[i]);
1252 kobject_put(notes_attrs->dir);
1254 kfree(notes_attrs);
1260 struct module_notes_attrs *notes_attrs;
1277 notes_attrs = kzalloc(sizeof(*notes_attrs)
1278 + notes * sizeof(notes_attrs->attrs[0]),
1280 if (notes_attrs == NULL)
1283 notes_attrs->notes = notes;
1284 nattr = ¬es_attrs->attrs[0];
1300 notes_attrs->dir = kobject_create_and_add("notes", &mod->mkobj.kobj);
1301 if (!notes_attrs->dir)
1305 if (sysfs_create_bin_file(notes_attrs->dir,
1306 ¬es_attrs->attrs[i]))
1309 mod->notes_attrs = notes_attrs;
1313 free_notes_attrs(notes_attrs, i);
1318 if (mod->notes_attrs)
1319 free_notes_attrs(mod->notes_attrs, mod->notes_attrs->notes);