From: Vitaly Kuznetsov Date: Sun, 12 Apr 2015 01:07:51 +0000 (-0700) Subject: Drivers: hv: util: introduce hv_utils_transport abstraction X-Git-Tag: omap-for-v4.2/fixes-rc1^2~94^2~68 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14b50f80c32dd4e84b6baeaa8bf4049cc5ecf56d;p=pandora-kernel.git Drivers: hv: util: introduce hv_utils_transport abstraction The intention is to make KVP/VSS drivers work through misc char devices. Introduce an abstraction for kernel/userspace communication to make the migration smoother. Transport operational mode (netlink or char device) is determined by the first received message. To support driver upgrades the switch from netlink to chardev operational mode is supported. Every hv_util daemon is supposed to register 2 callbacks: 1) on_msg() to get notified when the userspace daemon sent a message; 2) on_reset() to get notified when the userspace daemon drops the connection. Signed-off-by: Vitaly Kuznetsov Tested-by: Alex Ng Signed-off-by: K. Y. Srinivasan Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed