~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/net/core/netdev-genl-gen.c

Version: ~ [ linux-6.4-rc3 ] ~ [ linux-6.3.4 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.30 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.113 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.180 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.243 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.283 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.315 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  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/netdev.yaml */
  4 /* YNL-GEN kernel source */
  5 
  6 #include <net/netlink.h>
  7 #include <net/genetlink.h>
  8 
  9 #include "netdev-genl-gen.h"
 10 
 11 #include <linux/netdev.h>
 12 
 13 /* NETDEV_CMD_DEV_GET - do */
 14 static const struct nla_policy netdev_dev_get_nl_policy[NETDEV_A_DEV_IFINDEX + 1] = {
 15         [NETDEV_A_DEV_IFINDEX] = NLA_POLICY_MIN(NLA_U32, 1),
 16 };
 17 
 18 /* Ops table for netdev */
 19 static const struct genl_split_ops netdev_nl_ops[] = {
 20         {
 21                 .cmd            = NETDEV_CMD_DEV_GET,
 22                 .doit           = netdev_nl_dev_get_doit,
 23                 .policy         = netdev_dev_get_nl_policy,
 24                 .maxattr        = NETDEV_A_DEV_IFINDEX,
 25                 .flags          = GENL_CMD_CAP_DO,
 26         },
 27         {
 28                 .cmd    = NETDEV_CMD_DEV_GET,
 29                 .dumpit = netdev_nl_dev_get_dumpit,
 30                 .flags  = GENL_CMD_CAP_DUMP,
 31         },
 32 };
 33 
 34 static const struct genl_multicast_group netdev_nl_mcgrps[] = {
 35         [NETDEV_NLGRP_MGMT] = { "mgmt", },
 36 };
 37 
 38 struct genl_family netdev_nl_family __ro_after_init = {
 39         .name           = NETDEV_FAMILY_NAME,
 40         .version        = NETDEV_FAMILY_VERSION,
 41         .netnsok        = true,
 42         .parallel_ops   = true,
 43         .module         = THIS_MODULE,
 44         .split_ops      = netdev_nl_ops,
 45         .n_split_ops    = ARRAY_SIZE(netdev_nl_ops),
 46         .mcgrps         = netdev_nl_mcgrps,
 47         .n_mcgrps       = ARRAY_SIZE(netdev_nl_mcgrps),
 48 };
 49 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp