// SPDX-License-Identifier: GPL-2.0 /* * Netlink routines for CIFS * * Copyright (c) 2020 Samuel Cabrero <[email protected]> */ #include <net/genetlink.h> #include <uapi/linux/cifs/cifs_netlink.h> #include "netlink.h" #include "cifsglob.h" #include "cifs_debug.h" #include "cifs_swn.h" static const struct nla_policy cifs_genl_policy[CIFS_GENL_ATTR_MAX + 1] = …; static const struct genl_ops cifs_genl_ops[] = …; static const struct genl_multicast_group cifs_genl_mcgrps[] = …; struct genl_family cifs_genl_family = …; /** * cifs_genl_init - Register generic netlink family * * Return zero if initialized successfully, otherwise non-zero. */ int cifs_genl_init(void) { … } /** * cifs_genl_exit - Unregister generic netlink family */ void cifs_genl_exit(void) { … }