- more 2.6.17 port work (still does not build)
[linux-flexiantxendom0-3.2.10.git] / include / linux / dm-netlink.h
1 /*
2  * Device Mapper Netlink Support
3  *
4  * Copyright (C) 2005 IBM Corporation
5  *      Author: Mike Anderson <andmike@us.ibm.com>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20  *
21  */
22 #ifndef LINUX_DM_NETLINK_H
23 #define LINUX_DM_NETLINK_H
24
25 enum dm_evt_attr {
26         DM_E_ATTR_SEQNUM        = 1,
27         DM_E_ATTR_TSSEC         = 2,
28         DM_E_ATTR_TSUSEC        = 3,
29         DM_E_ATTR_DMNAME        = 4,
30         DM_E_ATTR_BLKERR        = 5,
31         DM_E_ATTR_VLDPTHS       = 6,
32         DM_E_ATTR_MAX,
33 };
34
35 #define DM_EVT NLMSG_MIN_TYPE + 0x1
36
37 #define DM_EVT_FAIL_PATH 0x1
38 #define DM_EVT_REINSTATE_PATH 0x2
39
40 struct dm_nl_msghdr {
41         uint16_t type;
42         uint16_t version;
43         uint16_t reserved1;
44         uint16_t reserved2;
45 } __attribute__((aligned(sizeof(uint64_t))));
46
47 #endif /* LINUX_DM_NETLINK_H */