Home
last modified time | relevance | path

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

/linux-6.1.9/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.c4124 struct module_kobject *mk = &owner->mkobj; in __root_device_register()
/linux-6.1.9/kernel/module/
Dsysfs.c116 if (sysfs_create_group(&mod->mkobj.kobj, &sect_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 …]
Dmain.c2474 kobject_uevent(&mod->mkobj.kobj, KOBJ_ADD); in do_init_module()
/linux-6.1.9/kernel/
Dparams.c716 err = add_sysfs_param(&mod->mkobj, &kparam[i], kparam[i].name); in module_param_sysfs_setup()
718 free_module_param_attrs(&mod->mkobj); in module_param_sysfs_setup()
728 err = sysfs_create_group(&mod->mkobj.kobj, &mod->mkobj.mp->grp); in module_param_sysfs_setup()
730 free_module_param_attrs(&mod->mkobj); in module_param_sysfs_setup()
743 if (mod->mkobj.mp) { in module_param_sysfs_remove()
744 sysfs_remove_group(&mod->mkobj.kobj, &mod->mkobj.mp->grp); in module_param_sysfs_remove()
747 free_module_param_attrs(&mod->mkobj); in module_param_sysfs_remove()
/linux-6.1.9/include/linux/
Dmodule.h378 struct module_kobject mkobj; member