Searched refs:mkobj (Results 1 – 7 of 7) sorted by relevance
/openbmc/linux/drivers/base/ |
H A D | module.c | 43 mk = &mod->mkobj; in module_add_driver() 45 struct kobject *mkobj; in module_add_driver() local 48 mkobj = kset_find_obj(module_kset, drv->mod_name); in module_add_driver() 49 if (mkobj) { in module_add_driver() 50 mk = container_of(mkobj, struct module_kobject, kobj); in module_add_driver() 52 drv->p->mkobj = mk; in module_add_driver() 54 kobject_put(mkobj); in module_add_driver() 107 mk = &drv->owner->mkobj; in module_remove_driver() 108 else if (drv->p->mkobj) in module_remove_driver() 109 mk = drv->p->mkobj; in module_remove_driver()
|
H A D | base.h | 82 struct module_kobject *mkobj; member
|
H A D | core.c | 4313 struct module_kobject *mk = &owner->mkobj; in __root_device_register()
|
/openbmc/linux/kernel/module/ |
H A D | sysfs.c | 116 if (sysfs_create_group(&mod->mkobj.kobj, §_attrs->grp)) in add_sect_attrs() 128 sysfs_remove_group(&mod->mkobj.kobj, in remove_sect_attrs() 214 notes_attrs->dir = kobject_create_and_add("notes", &mod->mkobj.kobj); in add_notes_attrs() 264 &mod->mkobj.kobj, mod->name); in add_usage_links() 286 sysfs_remove_file(&mod->mkobj.kobj, &attr->attr); in module_remove_modinfo_attrs() 311 error = sysfs_create_file(&mod->mkobj.kobj, in module_add_modinfo_attrs() 333 mod->mkobj.kobj_completion = &c; in mod_kobject_put() 334 kobject_put(&mod->mkobj.kobj); in mod_kobject_put() 357 mod->mkobj.mod = mod; in mod_sysfs_init() 359 memset(&mod->mkobj.kobj, 0, sizeof(mod->mkobj.kobj)); in mod_sysfs_init() [all …]
|
H A D | main.c | 2553 kobject_uevent(&mod->mkobj.kobj, KOBJ_ADD); in do_init_module()
|
/openbmc/linux/kernel/ |
H A D | params.c | 717 err = add_sysfs_param(&mod->mkobj, &kparam[i], kparam[i].name); in module_param_sysfs_setup() 719 free_module_param_attrs(&mod->mkobj); in module_param_sysfs_setup() 729 err = sysfs_create_group(&mod->mkobj.kobj, &mod->mkobj.mp->grp); in module_param_sysfs_setup() 731 free_module_param_attrs(&mod->mkobj); in module_param_sysfs_setup() 744 if (mod->mkobj.mp) { in module_param_sysfs_remove() 745 sysfs_remove_group(&mod->mkobj.kobj, &mod->mkobj.mp->grp); in module_param_sysfs_remove() 748 free_module_param_attrs(&mod->mkobj); in module_param_sysfs_remove()
|
/openbmc/linux/include/linux/ |
H A D | module.h | 417 struct module_kobject mkobj; member
|