Lines Matching refs:kobj
1221 rc = kobject_synth_uevent(&mk->kobj, buffer, count); in store_uevent()
1580 if (sysfs_create_group(&mod->mkobj.kobj, §_attrs->grp)) in add_sect_attrs()
1592 sysfs_remove_group(&mod->mkobj.kobj, in remove_sect_attrs()
1611 static ssize_t module_notes_read(struct file *filp, struct kobject *kobj, in module_notes_read() argument
1676 notes_attrs->dir = kobject_create_and_add("notes", &mod->mkobj.kobj); in add_notes_attrs()
1740 &mod->mkobj.kobj, mod->name); in add_usage_links()
1771 error = sysfs_create_file(&mod->mkobj.kobj, in module_add_modinfo_attrs()
1798 sysfs_remove_file(&mod->mkobj.kobj, &attr->attr); in module_remove_modinfo_attrs()
1809 kobject_put(&mod->mkobj.kobj); in mod_kobject_put()
1816 struct kobject *kobj; in mod_sysfs_init() local
1824 kobj = kset_find_obj(module_kset, mod->name); in mod_sysfs_init()
1825 if (kobj) { in mod_sysfs_init()
1827 kobject_put(kobj); in mod_sysfs_init()
1834 memset(&mod->mkobj.kobj, 0, sizeof(mod->mkobj.kobj)); in mod_sysfs_init()
1835 mod->mkobj.kobj.kset = module_kset; in mod_sysfs_init()
1836 err = kobject_init_and_add(&mod->mkobj.kobj, &module_ktype, NULL, in mod_sysfs_init()
1857 mod->holders_dir = kobject_create_and_add("holders", &mod->mkobj.kobj); in mod_sysfs_setup()
1878 kobject_uevent(&mod->mkobj.kobj, KOBJ_ADD); in mod_sysfs_setup()