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 _UAPILINUX_NBD_NETLINK_H
20 #define _UAPILINUX_NBD_NETLINK_H
21 #define NBD_GENL_FAMILY_NAME "nbd"
22 #define NBD_GENL_VERSION 0x1
23 #define NBD_GENL_MCAST_GROUP_NAME "nbd_mc_group"
24 enum {
25   NBD_ATTR_UNSPEC,
26   NBD_ATTR_INDEX,
27   NBD_ATTR_SIZE_BYTES,
28   NBD_ATTR_BLOCK_SIZE_BYTES,
29   NBD_ATTR_TIMEOUT,
30   NBD_ATTR_SERVER_FLAGS,
31   NBD_ATTR_CLIENT_FLAGS,
32   NBD_ATTR_SOCKETS,
33   NBD_ATTR_DEAD_CONN_TIMEOUT,
34   NBD_ATTR_DEVICE_LIST,
35   __NBD_ATTR_MAX,
36 };
37 #define NBD_ATTR_MAX (__NBD_ATTR_MAX - 1)
38 enum {
39   NBD_DEVICE_ITEM_UNSPEC,
40   NBD_DEVICE_ITEM,
41   __NBD_DEVICE_ITEM_MAX,
42 };
43 #define NBD_DEVICE_ITEM_MAX (__NBD_DEVICE_ITEM_MAX - 1)
44 enum {
45   NBD_DEVICE_UNSPEC,
46   NBD_DEVICE_INDEX,
47   NBD_DEVICE_CONNECTED,
48   __NBD_DEVICE_MAX,
49 };
50 #define NBD_DEVICE_ATTR_MAX (__NBD_DEVICE_MAX - 1)
51 enum {
52   NBD_SOCK_ITEM_UNSPEC,
53   NBD_SOCK_ITEM,
54   __NBD_SOCK_ITEM_MAX,
55 };
56 #define NBD_SOCK_ITEM_MAX (__NBD_SOCK_ITEM_MAX - 1)
57 enum {
58   NBD_SOCK_UNSPEC,
59   NBD_SOCK_FD,
60   __NBD_SOCK_MAX,
61 };
62 #define NBD_SOCK_MAX (__NBD_SOCK_MAX - 1)
63 enum {
64   NBD_CMD_UNSPEC,
65   NBD_CMD_CONNECT,
66   NBD_CMD_DISCONNECT,
67   NBD_CMD_RECONFIGURE,
68   NBD_CMD_LINK_DEAD,
69   NBD_CMD_STATUS,
70   __NBD_CMD_MAX,
71 };
72 #define NBD_CMD_MAX (__NBD_CMD_MAX - 1)
73 #endif
74