// SPDX-License-Identifier: GPL-2.0 /* * Regulator event over netlink * * Author: Naresh Solanki <[email protected]> */ #include <regulator/regulator.h> #include <net/netlink.h> #include <net/genetlink.h> #include <linux/atomic.h> #include "regnl.h" static atomic_t reg_event_seqnum = …; static const struct genl_multicast_group reg_event_mcgrps[] = …; static struct genl_family reg_event_genl_family __ro_after_init = …; int reg_generate_netlink_event(const char *reg_name, u64 event) { … } static int __init reg_event_genetlink_init(void) { … } static int __init reg_event_init(void) { … } fs_initcall(reg_event_init);