Searched refs:mkobj (Results 1 - 6 of 6) sorted by relevance

/linux-4.4.14/drivers/base/
H A Dmodule.c43 mk = &mod->mkobj; module_add_driver()
45 struct kobject *mkobj; module_add_driver() local
48 mkobj = kset_find_obj(module_kset, drv->mod_name); module_add_driver()
49 if (mkobj) { module_add_driver()
50 mk = container_of(mkobj, struct module_kobject, kobj); module_add_driver()
52 drv->p->mkobj = mk; module_add_driver()
54 kobject_put(mkobj); module_add_driver()
83 mk = &drv->owner->mkobj; module_remove_driver()
84 else if (drv->p->mkobj) module_remove_driver()
85 mk = drv->p->mkobj; module_remove_driver()
H A Dbase.h50 struct module_kobject *mkobj; member in struct:driver_private
H A Dcore.c1639 struct module_kobject *mk = &owner->mkobj; __root_device_register()
/linux-4.4.14/kernel/
H A Dparams.c753 err = add_sysfs_param(&mod->mkobj, &kparam[i], kparam[i].name); module_param_sysfs_setup()
755 free_module_param_attrs(&mod->mkobj); module_param_sysfs_setup()
765 err = sysfs_create_group(&mod->mkobj.kobj, &mod->mkobj.mp->grp); module_param_sysfs_setup()
767 free_module_param_attrs(&mod->mkobj); module_param_sysfs_setup()
780 if (mod->mkobj.mp) { module_param_sysfs_remove()
781 sysfs_remove_group(&mod->mkobj.kobj, &mod->mkobj.mp->grp); module_param_sysfs_remove()
784 free_module_param_attrs(&mod->mkobj); module_param_sysfs_remove()
H A Dmodule.c1534 if (sysfs_create_group(&mod->mkobj.kobj, &sect_attrs->grp)) add_sect_attrs()
1546 sysfs_remove_group(&mod->mkobj.kobj, remove_sect_attrs()
1631 notes_attrs->dir = kobject_create_and_add("notes", &mod->mkobj.kobj); add_notes_attrs()
1683 &mod->mkobj.kobj, mod->name); add_usage_links()
1720 error = sysfs_create_file(&mod->mkobj.kobj, module_add_modinfo_attrs()
1737 sysfs_remove_file(&mod->mkobj.kobj, &attr->attr); module_remove_modinfo_attrs()
1747 mod->mkobj.kobj_completion = &c; mod_kobject_put()
1748 kobject_put(&mod->mkobj.kobj); mod_kobject_put()
1771 mod->mkobj.mod = mod; mod_sysfs_init()
1773 memset(&mod->mkobj.kobj, 0, sizeof(mod->mkobj.kobj)); mod_sysfs_init()
1774 mod->mkobj.kobj.kset = module_kset; mod_sysfs_init()
1775 err = kobject_init_and_add(&mod->mkobj.kobj, &module_ktype, NULL, mod_sysfs_init()
1796 mod->holders_dir = kobject_create_and_add("holders", &mod->mkobj.kobj); mod_sysfs_setup()
1814 kobject_uevent(&mod->mkobj.kobj, KOBJ_ADD); mod_sysfs_setup()
1870 kobject_put(mod->mkobj.drivers_dir); mod_sysfs_teardown()
/linux-4.4.14/include/linux/
H A Dmodule.h321 struct module_kobject mkobj; member in struct:module

Completed in 317 milliseconds