aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/hyperv.h
diff options
context:
space:
mode:
authorDexuan Cui <decui@microsoft.com>2019-09-05 23:01:17 +0000
committerSasha Levin <sashal@kernel.org>2019-09-06 14:52:44 -0400
commit271b2224d42f88870e6b060924ee374871c131fc (patch)
treed25ba2bce5a00dc6b667eee734ec4ad69347c35f /include/linux/hyperv.h
parentDrivers: hv: vmbus: Add a helper function is_sub_channel() (diff)
downloadwireguard-linux-271b2224d42f88870e6b060924ee374871c131fc.tar.xz
wireguard-linux-271b2224d42f88870e6b060924ee374871c131fc.zip
Drivers: hv: vmbus: Implement suspend/resume for VSC drivers for hibernation
The high-level VSC drivers will implement device-specific callbacks. Signed-off-by: Dexuan Cui <decui@microsoft.com> Reviewed-by: Michael Kelley <mikelley@microsoft.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/hyperv.h')
-rw-r--r--include/linux/hyperv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h
index 2d39248cff96..8a60e7766037 100644
--- a/include/linux/hyperv.h
+++ b/include/linux/hyperv.h
@@ -1157,6 +1157,9 @@ struct hv_driver {
int (*remove)(struct hv_device *);
void (*shutdown)(struct hv_device *);
+ int (*suspend)(struct hv_device *);
+ int (*resume)(struct hv_device *);
+
};
/* Base device object */