Searched refs:mk (Results 1 - 52 of 52) sorted by relevance

/linux-4.4.14/drivers/base/
H A Dmodule.c25 static void module_create_drivers_dir(struct module_kobject *mk) module_create_drivers_dir() argument
27 if (!mk || mk->drivers_dir) module_create_drivers_dir()
30 mk->drivers_dir = kobject_create_and_add("drivers", &mk->kobj); module_create_drivers_dir()
37 struct module_kobject *mk = NULL; module_add_driver() local
43 mk = &mod->mkobj; module_add_driver()
50 mk = container_of(mkobj, struct module_kobject, kobj); module_add_driver()
52 drv->p->mkobj = mk; module_add_driver()
58 if (!mk) module_add_driver()
62 no_warn = sysfs_create_link(&drv->p->kobj, &mk->kobj, "module"); module_add_driver()
65 module_create_drivers_dir(mk); module_add_driver()
66 no_warn = sysfs_create_link(mk->drivers_dir, &drv->p->kobj, module_add_driver()
74 struct module_kobject *mk = NULL; module_remove_driver() local
83 mk = &drv->owner->mkobj; module_remove_driver()
85 mk = drv->p->mkobj; module_remove_driver()
86 if (mk && mk->drivers_dir) { module_remove_driver()
89 sysfs_remove_link(mk->drivers_dir, driver_name); module_remove_driver()
H A Dcore.c1639 struct module_kobject *mk = &owner->mkobj; __root_device_register() local
1641 err = sysfs_create_link(&root->dev.kobj, &mk->kobj, "module"); __root_device_register()
/linux-4.4.14/tools/testing/selftests/ftrace/
H A DMakefile6 include ../lib.mk
/linux-4.4.14/tools/testing/selftests/kcmp/
H A DMakefile7 include ../lib.mk
/linux-4.4.14/tools/testing/selftests/membarrier/
H A DMakefile7 include ../lib.mk
/linux-4.4.14/tools/testing/selftests/powerpc/benchmarks/
H A DMakefile9 include ../../lib.mk
/linux-4.4.14/tools/testing/selftests/powerpc/primitives/
H A DMakefile9 include ../../lib.mk
/linux-4.4.14/tools/testing/selftests/powerpc/syscalls/
H A DMakefile9 include ../../lib.mk
/linux-4.4.14/tools/testing/selftests/powerpc/vphn/
H A DMakefile9 include ../../lib.mk
/linux-4.4.14/tools/testing/selftests/size/
H A DMakefile8 include ../lib.mk
/linux-4.4.14/tools/testing/selftests/efivarfs/
H A DMakefile10 include ../lib.mk
/linux-4.4.14/tools/testing/selftests/ptrace/
H A DMakefile11 include ../lib.mk
/linux-4.4.14/tools/testing/selftests/seccomp/
H A DMakefile7 include ../lib.mk
/linux-4.4.14/tools/testing/selftests/zram/
H A DMakefile6 include ../lib.mk
/linux-4.4.14/tools/testing/selftests/cpu-hotplug/
H A DMakefile5 include ../lib.mk
/linux-4.4.14/tools/testing/selftests/lib/
H A DMakefile8 include ../lib.mk
/linux-4.4.14/tools/testing/selftests/powerpc/dscr/
H A DMakefile11 include ../../lib.mk
/linux-4.4.14/tools/testing/selftests/powerpc/mm/
H A DMakefile11 include ../../lib.mk
/linux-4.4.14/tools/testing/selftests/powerpc/stringloops/
H A DMakefile12 include ../../lib.mk
/linux-4.4.14/tools/testing/selftests/powerpc/tm/
H A DMakefile10 include ../../lib.mk
/linux-4.4.14/tools/testing/selftests/static_keys/
H A DMakefile8 include ../lib.mk
/linux-4.4.14/tools/testing/selftests/user/
H A DMakefile8 include ../lib.mk
/linux-4.4.14/tools/testing/selftests/breakpoints/
H A DMakefile11 include ../lib.mk
/linux-4.4.14/tools/testing/selftests/capabilities/
H A DMakefile3 include ../lib.mk
/linux-4.4.14/tools/testing/selftests/firmware/
H A DMakefile8 include ../lib.mk
/linux-4.4.14/tools/testing/selftests/memory-hotplug/
H A DMakefile3 include ../lib.mk
/linux-4.4.14/tools/testing/selftests/net/
H A DMakefile16 include ../lib.mk
/linux-4.4.14/tools/testing/selftests/powerpc/switch_endian/
H A DMakefile15 include ../../lib.mk
/linux-4.4.14/tools/testing/selftests/pstore/
H A DMakefile9 include ../lib.mk
/linux-4.4.14/tools/testing/selftests/sysctl/
H A DMakefile10 include ../lib.mk
/linux-4.4.14/kernel/
H A Dparams.c593 struct module_kobject *mk, char *buf) param_attr_show()
601 kernel_param_lock(mk->mod); param_attr_show()
603 kernel_param_unlock(mk->mod); param_attr_show()
613 struct module_kobject *mk, param_attr_store()
622 kernel_param_lock(mk->mod); param_attr_store()
625 kernel_param_unlock(mk->mod); param_attr_store()
654 * @mk: struct module_kobject
662 static __modinit int add_sysfs_param(struct module_kobject *mk, add_sysfs_param() argument
673 if (!mk->mp) { add_sysfs_param()
675 mk->mp = kzalloc(sizeof(*mk->mp), GFP_KERNEL); add_sysfs_param()
676 if (!mk->mp) add_sysfs_param()
678 mk->mp->grp.name = "parameters"; add_sysfs_param()
680 mk->mp->grp.attrs = kzalloc(sizeof(mk->mp->grp.attrs[0]), add_sysfs_param()
683 if (!mk->mp->grp.attrs) add_sysfs_param()
688 new_mp = krealloc(mk->mp, add_sysfs_param()
689 sizeof(*mk->mp) + add_sysfs_param()
690 sizeof(mk->mp->attrs[0]) * (mk->mp->num + 1), add_sysfs_param()
694 mk->mp = new_mp; add_sysfs_param()
697 new_attrs = krealloc(mk->mp->grp.attrs, add_sysfs_param()
698 sizeof(mk->mp->grp.attrs[0]) * (mk->mp->num + 2), add_sysfs_param()
702 mk->mp->grp.attrs = new_attrs; add_sysfs_param()
705 memset(&mk->mp->attrs[mk->mp->num], 0, sizeof(mk->mp->attrs[0])); add_sysfs_param()
706 sysfs_attr_init(&mk->mp->attrs[mk->mp->num].mattr.attr); add_sysfs_param()
707 mk->mp->attrs[mk->mp->num].param = kp; add_sysfs_param()
708 mk->mp->attrs[mk->mp->num].mattr.show = param_attr_show; add_sysfs_param()
711 mk->mp->attrs[mk->mp->num].mattr.store = param_attr_store; add_sysfs_param()
713 mk->mp->attrs[mk->mp->num].mattr.store = NULL; add_sysfs_param()
714 mk->mp->attrs[mk->mp->num].mattr.attr.name = (char *)name; add_sysfs_param()
715 mk->mp->attrs[mk->mp->num].mattr.attr.mode = kp->perm; add_sysfs_param()
716 mk->mp->num++; add_sysfs_param()
719 for (i = 0; i < mk->mp->num; i++) add_sysfs_param()
720 mk->mp->grp.attrs[i] = &mk->mp->attrs[i].mattr.attr; add_sysfs_param()
721 mk->mp->grp.attrs[mk->mp->num] = NULL; add_sysfs_param()
726 static void free_module_param_attrs(struct module_kobject *mk) free_module_param_attrs() argument
728 if (mk->mp) free_module_param_attrs()
729 kfree(mk->mp->grp.attrs); free_module_param_attrs()
730 kfree(mk->mp); free_module_param_attrs()
731 mk->mp = NULL; free_module_param_attrs()
800 struct module_kobject *mk; locate_module_kobject() local
806 mk = to_module_kobject(kobj); locate_module_kobject()
808 mk = kzalloc(sizeof(struct module_kobject), GFP_KERNEL); locate_module_kobject()
809 BUG_ON(!mk); locate_module_kobject()
811 mk->mod = THIS_MODULE; locate_module_kobject()
812 mk->kobj.kset = module_kset; locate_module_kobject()
813 err = kobject_init_and_add(&mk->kobj, &module_ktype, NULL, locate_module_kobject()
817 err = sysfs_create_file(&mk->kobj, &module_uevent.attr); locate_module_kobject()
820 kobject_put(&mk->kobj); locate_module_kobject()
827 kobject_get(&mk->kobj); locate_module_kobject()
830 return mk; locate_module_kobject()
837 struct module_kobject *mk; kernel_add_sysfs_param() local
840 mk = locate_module_kobject(name); kernel_add_sysfs_param()
841 if (!mk) kernel_add_sysfs_param()
845 if (mk->mp) kernel_add_sysfs_param()
846 sysfs_remove_group(&mk->kobj, &mk->mp->grp); kernel_add_sysfs_param()
849 err = add_sysfs_param(mk, kparam, kparam->name + name_skip); kernel_add_sysfs_param()
851 err = sysfs_create_group(&mk->kobj, &mk->mp->grp); kernel_add_sysfs_param()
853 kobject_uevent(&mk->kobj, KOBJ_ADD); kernel_add_sysfs_param()
854 kobject_put(&mk->kobj); kernel_add_sysfs_param()
893 struct module_kobject *mk, char *buf) __modver_version_show()
907 struct module_kobject *mk; version_sysfs_builtin() local
913 mk = locate_module_kobject(vattr->module_name); version_sysfs_builtin()
914 if (mk) { version_sysfs_builtin()
915 err = sysfs_create_file(&mk->kobj, &vattr->mattr.attr); version_sysfs_builtin()
917 kobject_uevent(&mk->kobj, KOBJ_ADD); version_sysfs_builtin()
918 kobject_put(&mk->kobj); version_sysfs_builtin()
930 struct module_kobject *mk; module_attr_show() local
934 mk = to_module_kobject(kobj); module_attr_show()
939 ret = attribute->show(attribute, mk, buf); module_attr_show()
949 struct module_kobject *mk; module_attr_store() local
953 mk = to_module_kobject(kobj); module_attr_store()
958 ret = attribute->store(attribute, mk, buf, len); module_attr_store()
986 struct module_kobject *mk = to_module_kobject(kobj); module_kobj_release() local
987 complete(mk->kobj_completion); module_kobj_release()
592 param_attr_show(struct module_attribute *mattr, struct module_kobject *mk, char *buf) param_attr_show() argument
612 param_attr_store(struct module_attribute *mattr, struct module_kobject *mk, const char *buf, size_t len) param_attr_store() argument
892 __modver_version_show(struct module_attribute *mattr, struct module_kobject *mk, char *buf) __modver_version_show() argument
H A Dmodule.c760 struct module_kobject *mk, char *buffer) \
762 return scnprintf(buffer, PAGE_SIZE, "%s\n", mk->mod->field); \
1082 struct module_kobject *mk, char *buffer) show_refcnt()
1084 return sprintf(buffer, "%i\n", module_refcount(mk->mod)); show_refcnt()
1180 struct module_kobject *mk, char *buffer) show_initstate()
1184 switch (mk->mod->state) { show_initstate()
1204 struct module_kobject *mk, store_uevent()
1210 kobject_uevent(&mk->kobj, action); store_uevent()
1218 struct module_kobject *mk, char *buffer) show_coresize()
1220 return sprintf(buffer, "%u\n", mk->mod->core_size); show_coresize()
1227 struct module_kobject *mk, char *buffer) show_initsize()
1229 return sprintf(buffer, "%u\n", mk->mod->init_size); show_initsize()
1236 struct module_kobject *mk, char *buffer) show_taint()
1240 l = module_flags_taint(mk->mod, buffer); show_taint()
1473 struct module_kobject *mk, char *buf) module_sect_show()
1081 show_refcnt(struct module_attribute *mattr, struct module_kobject *mk, char *buffer) show_refcnt() argument
1179 show_initstate(struct module_attribute *mattr, struct module_kobject *mk, char *buffer) show_initstate() argument
1203 store_uevent(struct module_attribute *mattr, struct module_kobject *mk, const char *buffer, size_t count) store_uevent() argument
1217 show_coresize(struct module_attribute *mattr, struct module_kobject *mk, char *buffer) show_coresize() argument
1226 show_initsize(struct module_attribute *mattr, struct module_kobject *mk, char *buffer) show_initsize() argument
1235 show_taint(struct module_attribute *mattr, struct module_kobject *mk, char *buffer) show_taint() argument
1472 module_sect_show(struct module_attribute *mattr, struct module_kobject *mk, char *buf) module_sect_show() argument
/linux-4.4.14/tools/testing/selftests/exec/
H A DMakefile23 include ../lib.mk
/linux-4.4.14/tools/testing/selftests/futex/functional/
H A DMakefile22 include ../../lib.mk
/linux-4.4.14/tools/testing/selftests/ipc/
H A DMakefile19 include ../lib.mk
/linux-4.4.14/tools/testing/selftests/memfd/
H A DMakefile11 include ../lib.mk
/linux-4.4.14/tools/testing/selftests/mount/
H A DMakefile9 include ../lib.mk
/linux-4.4.14/tools/testing/selftests/mqueue/
H A DMakefile7 include ../lib.mk
/linux-4.4.14/tools/testing/selftests/powerpc/copyloops/
H A DMakefile22 include ../../lib.mk
/linux-4.4.14/tools/testing/selftests/powerpc/pmu/ebb/
H A DMakefile27 include ../../../lib.mk
/linux-4.4.14/tools/testing/selftests/futex/
H A DMakefile9 include ../lib.mk
/linux-4.4.14/tools/testing/selftests/powerpc/pmu/
H A DMakefile15 include ../../lib.mk
/linux-4.4.14/tools/testing/selftests/vm/
H A DMakefile26 include ../lib.mk
/linux-4.4.14/tools/testing/selftests/timers/
H A DMakefile19 include ../lib.mk
/linux-4.4.14/tools/testing/selftests/powerpc/
H A DMakefile34 include ../lib.mk
/linux-4.4.14/tools/testing/selftests/x86/
H A DMakefile3 include ../lib.mk
/linux-4.4.14/net/ipv6/
H A Dipcomp6.c6 * Author Mitsuru KANDA <mk@linux-ipv6.org>
228 MODULE_AUTHOR("Mitsuru KANDA <mk@linux-ipv6.org>");
H A Dtunnel6.c17 * Authors Mitsuru KANDA <mk@linux-ipv6.org>
H A Dxfrm6_tunnel.c17 * Authors Mitsuru KANDA <mk@linux-ipv6.org>
/linux-4.4.14/sound/drivers/
H A Dmts64.c3 * Copyright (c) 2006 by Matthias König <mk@phasorlab.de>
51 MODULE_AUTHOR("Matthias Koenig <mk@phasorlab.de>");
/linux-4.4.14/drivers/macintosh/
H A Dadbhid.c927 int cur_handler_id, int mk) adbhid_input_reregister()
934 cur_handler_id, mk); adbhid_input_reregister()
938 cur_handler_id, mk); adbhid_input_reregister()
926 adbhid_input_reregister(int id, int default_id, int org_handler_id, int cur_handler_id, int mk) adbhid_input_reregister() argument
/linux-4.4.14/fs/fuse/
H A Ddir.c86 * Set dentry and possibly attribute timeouts from the lookup/mk*

Completed in 1568 milliseconds