• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef _UAPI__LINUX_GENERIC_NETLINK_H
20 #define _UAPI__LINUX_GENERIC_NETLINK_H
21 #include <linux/types.h>
22 #include <linux/netlink.h>
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #define GENL_NAMSIZ 16
25 #define GENL_MIN_ID NLMSG_MIN_TYPE
26 #define GENL_MAX_ID 1023
27 struct genlmsghdr {
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29   __u8 cmd;
30   __u8 version;
31   __u16 reserved;
32 };
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
35 #define GENL_ADMIN_PERM 0x01
36 #define GENL_CMD_CAP_DO 0x02
37 #define GENL_CMD_CAP_DUMP 0x04
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 #define GENL_CMD_CAP_HASPOL 0x08
40 #define GENL_ID_GENERATE 0
41 #define GENL_ID_CTRL NLMSG_MIN_TYPE
42 #define GENL_ID_VFS_DQUOT (NLMSG_MIN_TYPE + 1)
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 #define GENL_ID_PMCRAID (NLMSG_MIN_TYPE + 2)
45 enum {
46   CTRL_CMD_UNSPEC,
47   CTRL_CMD_NEWFAMILY,
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49   CTRL_CMD_DELFAMILY,
50   CTRL_CMD_GETFAMILY,
51   CTRL_CMD_NEWOPS,
52   CTRL_CMD_DELOPS,
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54   CTRL_CMD_GETOPS,
55   CTRL_CMD_NEWMCAST_GRP,
56   CTRL_CMD_DELMCAST_GRP,
57   CTRL_CMD_GETMCAST_GRP,
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59   __CTRL_CMD_MAX,
60 };
61 #define CTRL_CMD_MAX (__CTRL_CMD_MAX - 1)
62 enum {
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64   CTRL_ATTR_UNSPEC,
65   CTRL_ATTR_FAMILY_ID,
66   CTRL_ATTR_FAMILY_NAME,
67   CTRL_ATTR_VERSION,
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69   CTRL_ATTR_HDRSIZE,
70   CTRL_ATTR_MAXATTR,
71   CTRL_ATTR_OPS,
72   CTRL_ATTR_MCAST_GROUPS,
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74   __CTRL_ATTR_MAX,
75 };
76 #define CTRL_ATTR_MAX (__CTRL_ATTR_MAX - 1)
77 enum {
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79   CTRL_ATTR_OP_UNSPEC,
80   CTRL_ATTR_OP_ID,
81   CTRL_ATTR_OP_FLAGS,
82   __CTRL_ATTR_OP_MAX,
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 };
85 #define CTRL_ATTR_OP_MAX (__CTRL_ATTR_OP_MAX - 1)
86 enum {
87   CTRL_ATTR_MCAST_GRP_UNSPEC,
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89   CTRL_ATTR_MCAST_GRP_NAME,
90   CTRL_ATTR_MCAST_GRP_ID,
91   __CTRL_ATTR_MCAST_GRP_MAX,
92 };
93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94 #define CTRL_ATTR_MCAST_GRP_MAX (__CTRL_ATTR_MCAST_GRP_MAX - 1)
95 #endif
96