aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2012-01-27 18:55:57 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-02 18:30:47 -0500
commit4f03a2c934894f30a64d397df8c7c4de129c5b30 (patch)
tree7bb0f54b6ba31aaec90e1703d0d5485977f72dbc
parentbd1d462e13b278fc57752d0b9b15040e60e561a0 (diff)
drivers: hv: kvp: Add/cleanup connector defines
The current KVP code carries some private connector related defines. Update connector.h to have all the KVP defines. As part of this patch get rid of some unused defines. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/hv/hv_kvp.h3
-rw-r--r--include/linux/connector.h1
-rw-r--r--tools/hv/hv_kvp_daemon.c4
3 files changed, 1 insertions, 7 deletions
diff --git a/drivers/hv/hv_kvp.h b/drivers/hv/hv_kvp.h
index 9b765d7df838..c2c5bba25a5a 100644
--- a/drivers/hv/hv_kvp.h
+++ b/drivers/hv/hv_kvp.h
@@ -107,9 +107,6 @@
107 * the KVP user-mode component. 107 * the KVP user-mode component.
108 */ 108 */
109 109
110#define CN_KVP_VAL 0x1 /* This supports queries from the kernel */
111#define CN_KVP_USER_VAL 0x2 /* This supports queries from the user */
112
113enum hv_ku_op { 110enum hv_ku_op {
114 KVP_REGISTER = 0, /* Register the user mode component */ 111 KVP_REGISTER = 0, /* Register the user mode component */
115 KVP_KERNEL_GET, /* Kernel is requesting the value */ 112 KVP_KERNEL_GET, /* Kernel is requesting the value */
diff --git a/include/linux/connector.h b/include/linux/connector.h
index 3c9c54fd5690..76384074262d 100644
--- a/include/linux/connector.h
+++ b/include/linux/connector.h
@@ -43,6 +43,7 @@
43#define CN_IDX_DRBD 0x8 43#define CN_IDX_DRBD 0x8
44#define CN_VAL_DRBD 0x1 44#define CN_VAL_DRBD 0x1
45#define CN_KVP_IDX 0x9 /* HyperV KVP */ 45#define CN_KVP_IDX 0x9 /* HyperV KVP */
46#define CN_KVP_VAL 0x1 /* queries from the kernel */
46 47
47#define CN_NETLINK_USERS 10 /* Highest index + 1 */ 48#define CN_NETLINK_USERS 10 /* Highest index + 1 */
48 49
diff --git a/tools/hv/hv_kvp_daemon.c b/tools/hv/hv_kvp_daemon.c
index 11224eddcdc2..2b6a2d950b88 100644
--- a/tools/hv/hv_kvp_daemon.c
+++ b/tools/hv/hv_kvp_daemon.c
@@ -40,15 +40,11 @@
40#include <syslog.h> 40#include <syslog.h>
41 41
42/* 42/*
43 * KYS: TODO. Need to register these in the kernel.
44 * 43 *
45 * The following definitions are shared with the in-kernel component; do not 44 * The following definitions are shared with the in-kernel component; do not
46 * change any of this without making the corresponding changes in 45 * change any of this without making the corresponding changes in
47 * the KVP kernel component. 46 * the KVP kernel component.
48 */ 47 */
49#define CN_KVP_IDX 0x9 /* MSFT KVP functionality */
50#define CN_KVP_VAL 0x1 /* This supports queries from the kernel */
51#define CN_KVP_USER_VAL 0x2 /* This supports queries from the user */
52 48
53/* 49/*
54 * KVP protocol: The user mode component first registers with the 50 * KVP protocol: The user mode component first registers with the