drivers: hv: kvp: Add/cleanup connector defines
authorK. Y. Srinivasan <kys@microsoft.com>
Fri, 27 Jan 2012 23:55:57 +0000 (15:55 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Feb 2012 23:30:47 +0000 (15:30 -0800)
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>
drivers/hv/hv_kvp.h
include/linux/connector.h
tools/hv/hv_kvp_daemon.c

index 9b765d7df83808b855630f26183fbb5ba527c103..c2c5bba25a5aef6c44be20293c04cfda1f936167 100644 (file)
  * the KVP user-mode component.
  */
 
-#define CN_KVP_VAL             0x1 /* This supports queries from the kernel */
-#define CN_KVP_USER_VAL       0x2 /* This supports queries from the user */
-
 enum hv_ku_op {
        KVP_REGISTER = 0, /* Register the user mode component */
        KVP_KERNEL_GET, /* Kernel is requesting the value */
index 3c9c54fd5690a6142cf155091a2e5546600037df..76384074262d894e4732ed6db4e1883053f0b107 100644 (file)
@@ -43,6 +43,7 @@
 #define CN_IDX_DRBD                    0x8
 #define CN_VAL_DRBD                    0x1
 #define CN_KVP_IDX                     0x9     /* HyperV KVP */
+#define CN_KVP_VAL                     0x1     /* queries from the kernel */
 
 #define CN_NETLINK_USERS               10      /* Highest index + 1 */
 
index 11224eddcdc22ebcb40e20d77774e2a1834cb8fb..2b6a2d950b88806e99728ec7abfdb91b7ef02a2b 100644 (file)
 #include <syslog.h>
 
 /*
- * KYS: TODO. Need to register these in the kernel.
  *
  * The following definitions are shared with the in-kernel component; do not
  * change any of this without making the corresponding changes in
  * the KVP kernel component.
  */
-#define CN_KVP_IDX             0x9     /* MSFT KVP functionality */
-#define CN_KVP_VAL             0x1 /* This supports queries from the kernel */
-#define CN_KVP_USER_VAL                0x2 /* This supports queries from the user  */
 
 /*
  * KVP protocol: The user mode component first registers with the