diff options
author | Andrea Parri (Microsoft) <parri.andrea@gmail.com> | 2022-04-19 15:23:22 +0300 |
---|---|---|
committer | Wei Liu <wei.liu@kernel.org> | 2022-04-25 18:51:12 +0300 |
commit | b03afa57c65e1e045e02df49777e953742745f4c (patch) | |
tree | 5e53d07bdea47f83db7555faa348e79695a97261 /include/linux/hyperv.h | |
parent | de5ddb7d44347ad8b00533c1850a4e2e636a1ce9 (diff) | |
download | linux-b03afa57c65e1e045e02df49777e953742745f4c.tar.xz |
Drivers: hv: vmbus: Introduce vmbus_sendpacket_getid()
The function can be used to send a VMbus packet and retrieve the
corresponding transaction ID. It will be used by hv_pci.
No functional change.
Suggested-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Andrea Parri (Microsoft) <parri.andrea@gmail.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20220419122325.10078-4-parri.andrea@gmail.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'include/linux/hyperv.h')
-rw-r--r-- | include/linux/hyperv.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index 2d085d951ee4..7cb8718825ee 100644 --- a/include/linux/hyperv.h +++ b/include/linux/hyperv.h @@ -1161,6 +1161,13 @@ extern int vmbus_open(struct vmbus_channel *channel, extern void vmbus_close(struct vmbus_channel *channel); +extern int vmbus_sendpacket_getid(struct vmbus_channel *channel, + void *buffer, + u32 bufferLen, + u64 requestid, + u64 *trans_id, + enum vmbus_packet_type type, + u32 flags); extern int vmbus_sendpacket(struct vmbus_channel *channel, void *buffer, u32 bufferLen, |