// SPDX-License-Identifier: GPL-2.0 /* * module.c - module sysfs fun for drivers */ #include <linux/device.h> #include <linux/module.h> #include <linux/errno.h> #include <linux/slab.h> #include <linux/string.h> #include "base.h" static char *make_driver_name(const struct device_driver *drv) { … } static void module_create_drivers_dir(struct module_kobject *mk) { … } int module_add_driver(struct module *mod, const struct device_driver *drv) { … } void module_remove_driver(const struct device_driver *drv) { … }