Home
last modified time | relevance | path

Searched refs:module_attribute (Results 1 – 5 of 5) sorted by relevance

/linux-6.6.21/include/linux/
Dmodule.h53 struct module_attribute { struct
55 ssize_t (*show)(struct module_attribute *, struct module_kobject *, argument
57 ssize_t (*store)(struct module_attribute *, struct module_kobject *, argument
65 struct module_attribute mattr; argument
70 extern ssize_t __modver_version_show(struct module_attribute *,
73 extern struct module_attribute module_uevent;
418 struct module_attribute *modinfo_attrs;
/linux-6.6.21/kernel/module/
Dsysfs.c277 struct module_attribute *attr; in module_remove_modinfo_attrs()
295 struct module_attribute *attr; in module_add_modinfo_attrs()
296 struct module_attribute *temp_attr; in module_add_modinfo_attrs()
300 mod->modinfo_attrs = kzalloc((sizeof(struct module_attribute) * in module_add_modinfo_attrs()
Dmain.c507 static ssize_t show_modinfo_##field(struct module_attribute *mattr, \
521 static struct module_attribute modinfo_##field = { \
811 static ssize_t show_refcnt(struct module_attribute *mattr, in show_refcnt()
817 static struct module_attribute modinfo_refcnt =
886 static ssize_t show_initstate(struct module_attribute *mattr, in show_initstate()
907 static struct module_attribute modinfo_initstate =
910 static ssize_t store_uevent(struct module_attribute *mattr, in store_uevent()
920 struct module_attribute module_uevent =
923 static ssize_t show_coresize(struct module_attribute *mattr, in show_coresize()
935 static struct module_attribute modinfo_coresize =
[all …]
Dinternal.h50 extern struct module_attribute *modinfo_attrs[];
/linux-6.6.21/kernel/
Dparams.c539 #define to_module_attr(n) container_of(n, struct module_attribute, attr)
544 struct module_attribute mattr;
558 static ssize_t param_attr_show(struct module_attribute *mattr, in param_attr_show()
574 static ssize_t param_attr_store(struct module_attribute *mattr, in param_attr_store()
856 ssize_t __modver_version_show(struct module_attribute *mattr, in __modver_version_show()
891 struct module_attribute *attribute; in module_attr_show()
910 struct module_attribute *attribute; in module_attr_store()