aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hv/channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hv/channel.c')
-rw-r--r--drivers/hv/channel.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c
index ddadb7efd1cc..de8193f3b838 100644
--- a/drivers/hv/channel.c
+++ b/drivers/hv/channel.c
@@ -743,15 +743,16 @@ EXPORT_SYMBOL_GPL(vmbus_close);
743 743
744/** 744/**
745 * vmbus_sendpacket() - Send the specified buffer on the given channel 745 * vmbus_sendpacket() - Send the specified buffer on the given channel
746 * @channel: Pointer to vmbus_channel structure. 746 * @channel: Pointer to vmbus_channel structure
747 * @buffer: Pointer to the buffer you want to receive the data into. 747 * @buffer: Pointer to the buffer you want to send the data from.
748 * @bufferlen: Maximum size of what the the buffer will hold 748 * @bufferlen: Maximum size of what the buffer holds.
749 * @requestid: Identifier of the request 749 * @requestid: Identifier of the request
750 * @type: Type of packet that is being send e.g. negotiate, time 750 * @type: Type of packet that is being sent e.g. negotiate, time
751 * packet etc. 751 * packet etc.
752 * @flags: 0 or VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED
752 * 753 *
753 * Sends data in @buffer directly to hyper-v via the vmbus 754 * Sends data in @buffer directly to Hyper-V via the vmbus.
754 * This will send the data unparsed to hyper-v. 755 * This will send the data unparsed to Hyper-V.
755 * 756 *
756 * Mainly used by Hyper-V drivers. 757 * Mainly used by Hyper-V drivers.
757 */ 758 */
@@ -884,12 +885,13 @@ int vmbus_sendpacket_mpb_desc(struct vmbus_channel *channel,
884EXPORT_SYMBOL_GPL(vmbus_sendpacket_mpb_desc); 885EXPORT_SYMBOL_GPL(vmbus_sendpacket_mpb_desc);
885 886
886/** 887/**
887 * vmbus_recvpacket() - Retrieve the user packet on the specified channel 888 * __vmbus_recvpacket() - Retrieve the user packet on the specified channel
888 * @channel: Pointer to vmbus_channel structure. 889 * @channel: Pointer to vmbus_channel structure
889 * @buffer: Pointer to the buffer you want to receive the data into. 890 * @buffer: Pointer to the buffer you want to receive the data into.
890 * @bufferlen: Maximum size of what the the buffer will hold 891 * @bufferlen: Maximum size of what the buffer can hold.
891 * @buffer_actual_len: The actual size of the data after it was received 892 * @buffer_actual_len: The actual size of the data after it was received.
892 * @requestid: Identifier of the request 893 * @requestid: Identifier of the request
894 * @raw: true means keep the vmpacket_descriptor header in the received data.
893 * 895 *
894 * Receives directly from the hyper-v vmbus and puts the data it received 896 * Receives directly from the hyper-v vmbus and puts the data it received
895 * into Buffer. This will receive the data unparsed from hyper-v. 897 * into Buffer. This will receive the data unparsed from hyper-v.