xref: /linux/net/sunrpc/netlink.c (revision af81cb247ca94e4bcfea31ea862cf3aaf955a503)
1 // SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
2 /* Do not edit directly, auto-generated from: */
3 /*	Documentation/netlink/specs/sunrpc_cache.yaml */
4 /* YNL-GEN kernel source */
5 /* To regenerate run: tools/net/ynl/ynl-regen.sh */
6 
7 #include <net/netlink.h>
8 #include <net/genetlink.h>
9 #include <linux/sunrpc/cache.h>
10 
11 #include "netlink.h"
12 
13 #include <uapi/linux/sunrpc_netlink.h>
14 
15 /* Ops table for sunrpc */
16 static const struct genl_split_ops sunrpc_nl_ops[] = {
17 };
18 
19 static const struct genl_multicast_group sunrpc_nl_mcgrps[] = {
20 	[SUNRPC_NLGRP_NONE] = { "none", },
21 	[SUNRPC_NLGRP_EXPORTD] = { "exportd", },
22 };
23 
24 struct genl_family sunrpc_nl_family __ro_after_init = {
25 	.name		= SUNRPC_FAMILY_NAME,
26 	.version	= SUNRPC_FAMILY_VERSION,
27 	.netnsok	= true,
28 	.parallel_ops	= true,
29 	.module		= THIS_MODULE,
30 	.split_ops	= sunrpc_nl_ops,
31 	.n_split_ops	= ARRAY_SIZE(sunrpc_nl_ops),
32 	.mcgrps		= sunrpc_nl_mcgrps,
33 	.n_mcgrps	= ARRAY_SIZE(sunrpc_nl_mcgrps),
34 };
35