• 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 #define GENL_NAMSIZ 16
24 #define GENL_MIN_ID NLMSG_MIN_TYPE
25 #define GENL_MAX_ID 1023
26 struct genlmsghdr {
27   __u8 cmd;
28   __u8 version;
29   __u16 reserved;
30 };
31 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
32 #define GENL_ADMIN_PERM 0x01
33 #define GENL_CMD_CAP_DO 0x02
34 #define GENL_CMD_CAP_DUMP 0x04
35 #define GENL_CMD_CAP_HASPOL 0x08
36 #define GENL_UNS_ADMIN_PERM 0x10
37 #define GENL_ID_CTRL NLMSG_MIN_TYPE
38 #define GENL_ID_VFS_DQUOT (NLMSG_MIN_TYPE + 1)
39 #define GENL_ID_PMCRAID (NLMSG_MIN_TYPE + 2)
40 #define GENL_START_ALLOC (NLMSG_MIN_TYPE + 3)
41 enum {
42   CTRL_CMD_UNSPEC,
43   CTRL_CMD_NEWFAMILY,
44   CTRL_CMD_DELFAMILY,
45   CTRL_CMD_GETFAMILY,
46   CTRL_CMD_NEWOPS,
47   CTRL_CMD_DELOPS,
48   CTRL_CMD_GETOPS,
49   CTRL_CMD_NEWMCAST_GRP,
50   CTRL_CMD_DELMCAST_GRP,
51   CTRL_CMD_GETMCAST_GRP,
52   CTRL_CMD_GETPOLICY,
53   __CTRL_CMD_MAX,
54 };
55 #define CTRL_CMD_MAX (__CTRL_CMD_MAX - 1)
56 enum {
57   CTRL_ATTR_UNSPEC,
58   CTRL_ATTR_FAMILY_ID,
59   CTRL_ATTR_FAMILY_NAME,
60   CTRL_ATTR_VERSION,
61   CTRL_ATTR_HDRSIZE,
62   CTRL_ATTR_MAXATTR,
63   CTRL_ATTR_OPS,
64   CTRL_ATTR_MCAST_GROUPS,
65   CTRL_ATTR_POLICY,
66   CTRL_ATTR_OP_POLICY,
67   CTRL_ATTR_OP,
68   __CTRL_ATTR_MAX,
69 };
70 #define CTRL_ATTR_MAX (__CTRL_ATTR_MAX - 1)
71 enum {
72   CTRL_ATTR_OP_UNSPEC,
73   CTRL_ATTR_OP_ID,
74   CTRL_ATTR_OP_FLAGS,
75   __CTRL_ATTR_OP_MAX,
76 };
77 #define CTRL_ATTR_OP_MAX (__CTRL_ATTR_OP_MAX - 1)
78 enum {
79   CTRL_ATTR_MCAST_GRP_UNSPEC,
80   CTRL_ATTR_MCAST_GRP_NAME,
81   CTRL_ATTR_MCAST_GRP_ID,
82   __CTRL_ATTR_MCAST_GRP_MAX,
83 };
84 enum {
85   CTRL_ATTR_POLICY_UNSPEC,
86   CTRL_ATTR_POLICY_DO,
87   CTRL_ATTR_POLICY_DUMP,
88   __CTRL_ATTR_POLICY_DUMP_MAX,
89   CTRL_ATTR_POLICY_DUMP_MAX = __CTRL_ATTR_POLICY_DUMP_MAX - 1
90 };
91 #define CTRL_ATTR_MCAST_GRP_MAX (__CTRL_ATTR_MCAST_GRP_MAX - 1)
92 #endif
93