Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/base/
Dmodule.c43 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()
83 mk = &drv->owner->mkobj; in module_remove_driver()
84 else if (drv->p->mkobj) in module_remove_driver()
85 mk = drv->p->mkobj; in module_remove_driver()
Dbase.h62 struct module_kobject *mkobj; member
Dcore.c3545 struct module_kobject *mk = &owner->mkobj; in __root_device_register()
/kernel/linux/linux-5.10/kernel/
Dparams.c698 err = add_sysfs_param(&mod->mkobj, &kparam[i], kparam[i].name); in module_param_sysfs_setup()
700 free_module_param_attrs(&mod->mkobj); in module_param_sysfs_setup()
710 err = sysfs_create_group(&mod->mkobj.kobj, &mod->mkobj.mp->grp); in module_param_sysfs_setup()
712 free_module_param_attrs(&mod->mkobj); in module_param_sysfs_setup()
725 if (mod->mkobj.mp) { in module_param_sysfs_remove()
726 sysfs_remove_group(&mod->mkobj.kobj, &mod->mkobj.mp->grp); in module_param_sysfs_remove()
729 free_module_param_attrs(&mod->mkobj); in module_param_sysfs_remove()
Dmodule.c1639 if (sysfs_create_group(&mod->mkobj.kobj, &sect_attrs->grp)) in add_sect_attrs()
1651 sysfs_remove_group(&mod->mkobj.kobj, in remove_sect_attrs()
1735 notes_attrs->dir = kobject_create_and_add("notes", &mod->mkobj.kobj); in add_notes_attrs()
1799 &mod->mkobj.kobj, mod->name); in add_usage_links()
1830 error = sysfs_create_file(&mod->mkobj.kobj, in module_add_modinfo_attrs()
1859 sysfs_remove_file(&mod->mkobj.kobj, &attr->attr); in module_remove_modinfo_attrs()
1869 mod->mkobj.kobj_completion = &c; in mod_kobject_put()
1870 kobject_put(&mod->mkobj.kobj); in mod_kobject_put()
1893 mod->mkobj.mod = mod; in mod_sysfs_init()
1895 memset(&mod->mkobj.kobj, 0, sizeof(mod->mkobj.kobj)); in mod_sysfs_init()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dmodule.h376 struct module_kobject mkobj; member