summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDexuan Cui <decui@microsoft.com>2018-09-23 21:10:41 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-10-02 15:36:11 -0700
commitfe857bb40fb6788afe6b12b1df50b94e2d363c89 (patch)
treecf7cb6e587bbf20096d4c7921286c9c734e046e2
parenta007734618fee1bf35556c04fa498d41d42c7301 (diff)
Drivers: hv: vmbus: Fix the descriptions of some function parameters
No functional change. Added descriptions for some parameters. Fixed some typos. Removed some out-of-date comments. Signed-off-by: Dexuan Cui <decui@microsoft.com> Cc: Jonathan Corbet <corbet@lwn.net> Cc: linux-doc@vger.kernel.org Cc: K. Y. Srinivasan <kys@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/hv/channel.c24
-rw-r--r--drivers/hv/channel_mgmt.c23
2 files changed, 22 insertions, 25 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);
/**
* vmbus_sendpacket() - Send the specified buffer on the given channel
- * @channel: Pointer to vmbus_channel structure.
- * @buffer: Pointer to the buffer you want to receive the data into.
- * @bufferlen: Maximum size of what the the buffer will hold
+ * @channel: Pointer to vmbus_channel structure
+ * @buffer: Pointer to the buffer you want to send the data from.
+ * @bufferlen: Maximum size of what the buffer holds.
* @requestid: Identifier of the request
- * @type: Type of packet that is being send e.g. negotiate, time
- * packet etc.
+ * @type: Type of packet that is being sent e.g. negotiate, time
+ * packet etc.
+ * @flags: 0 or VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED
*
- * Sends data in @buffer directly to hyper-v via the vmbus
- * This will send the data unparsed to hyper-v.
+ * Sends data in @buffer directly to Hyper-V via the vmbus.
+ * This will send the data unparsed to Hyper-V.
*
* Mainly used by Hyper-V drivers.
*/
@@ -884,12 +885,13 @@ int vmbus_sendpacket_mpb_desc(struct vmbus_channel *channel,
EXPORT_SYMBOL_GPL(vmbus_sendpacket_mpb_desc);
/**
- * vmbus_recvpacket() - Retrieve the user packet on the specified channel
- * @channel: Pointer to vmbus_channel structure.
+ * __vmbus_recvpacket() - Retrieve the user packet on the specified channel
+ * @channel: Pointer to vmbus_channel structure
* @buffer: Pointer to the buffer you want to receive the data into.
- * @bufferlen: Maximum size of what the the buffer will hold
- * @buffer_actual_len: The actual size of the data after it was received
+ * @bufferlen: Maximum size of what the buffer can hold.
+ * @buffer_actual_len: The actual size of the data after it was received.
* @requestid: Identifier of the request
+ * @raw: true means keep the vmpacket_descriptor header in the received data.
*
* Receives directly from the hyper-v vmbus and puts the data it received
* into Buffer. This will receive the data unparsed from hyper-v.
diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c
index b7c48ebdf6a1..6f3e6af5e891 100644
--- a/drivers/hv/channel_mgmt.c
+++ b/drivers/hv/channel_mgmt.c
@@ -198,24 +198,19 @@ static u16 hv_get_dev_type(const struct vmbus_channel *channel)
}
/**
- * vmbus_prep_negotiate_resp() - Create default response for Hyper-V Negotiate message
+ * vmbus_prep_negotiate_resp() - Create default response for Negotiate message
* @icmsghdrp: Pointer to msg header structure
- * @icmsg_negotiate: Pointer to negotiate message structure
* @buf: Raw buffer channel data
+ * @fw_version: The framework versions we can support.
+ * @fw_vercnt: The size of @fw_version.
+ * @srv_version: The service versions we can support.
+ * @srv_vercnt: The size of @srv_version.
+ * @nego_fw_version: The selected framework version.
+ * @nego_srv_version: The selected service version.
*
- * @icmsghdrp is of type &struct icmsg_hdr.
- * Set up and fill in default negotiate response message.
- *
- * The fw_version and fw_vercnt specifies the framework version that
- * we can support.
- *
- * The srv_version and srv_vercnt specifies the service
- * versions we can support.
- *
- * Versions are given in decreasing order.
- *
- * nego_fw_version and nego_srv_version store the selected protocol versions.
+ * Note: Versions are given in decreasing order.
*
+ * Set up and fill in default negotiate response message.
* Mainly used by Hyper-V drivers.
*/
bool vmbus_prep_negotiate_resp(struct icmsg_hdr *icmsghdrp,
id=d783435315d8e604998925d5e47b663a500ed252'>auth-options.h6
-rw-r--r--auth-passwd.c5
-rw-r--r--auth-rh-rsa.c8
-rw-r--r--auth-rhosts.c6
-rw-r--r--auth-rsa.c11
-rw-r--r--auth-skey.c5
-rw-r--r--auth.c10
-rw-r--r--auth.h11
-rw-r--r--auth1.c8
-rw-r--r--auth2-chall.c9
-rw-r--r--auth2-gss.c14
-rw-r--r--auth2-hostbased.c12
-rw-r--r--auth2-kbdint.c9
-rw-r--r--auth2-none.c10
-rw-r--r--auth2-passwd.c11
-rw-r--r--auth2-pubkey.c12
-rw-r--r--auth2.c10
-rw-r--r--authfd.c7
-rw-r--r--authfd.h4
-rw-r--r--authfile.c6
-rw-r--r--bufaux.c7
-rw-r--r--bufbn.c7
-rw-r--r--buffer.c3
-rw-r--r--buffer.h38
-rw-r--r--canohost.c5
-rw-r--r--channels.c9
-rw-r--r--channels.h4
-rw-r--r--cipher-3des1.c4
-rw-r--r--cipher-bf1.c4
-rw-r--r--cipher-ctr.c6
-rw-r--r--cipher.c5
-rw-r--r--cleanup.c5
-rw-r--r--clientloop.c8
-rw-r--r--compat.c7
-rw-r--r--compress.c6
-rw-r--r--deattack.c8
-rw-r--r--dh.c2
-rw-r--r--dispatch.c6
-rw-r--r--dns.c2
-rw-r--r--dns.h9
-rw-r--r--fatal.c4
-rw-r--r--groupaccess.c5
-rw-r--r--groupaccess.h4
-rw-r--r--gss-genr.c6
-rw-r--r--gss-serv-krb5.c9
-rw-r--r--gss-serv.c10
-rw-r--r--hostfile.c4
-rw-r--r--includes.h3
-rw-r--r--kex.c12
-rw-r--r--kex.h8
-rw-r--r--kexdh.c9
-rw-r--r--kexdhc.c7
-rw-r--r--kexdhs.c9
-rw-r--r--kexgex.c8
-rw-r--r--kexgexc.c7
-rw-r--r--kexgexs.c8
-rw-r--r--key.c6
-rw-r--r--key.h4
-rw-r--r--log.c6
-rw-r--r--log.h8
-rw-r--r--loginrec.c4
-rw-r--r--loginrec.h4
-rw-r--r--mac.c7
-rw-r--r--match.c6
-rw-r--r--md-sha256.c4
-rw-r--r--misc.c6
-rw-r--r--misc.h7
-rw-r--r--moduli.c3
-rw-r--r--monitor.c15
-rw-r--r--monitor_fdpass.c3
-rw-r--r--monitor_mm.c7
-rw-r--r--monitor_mm.h3
-rw-r--r--monitor_wrap.c25
-rw-r--r--monitor_wrap.h10
-rw-r--r--msg.c6
-rw-r--r--nchan.c3
-rw-r--r--openbsd-compat/port-aix.c7
-rw-r--r--openbsd-compat/port-tun.h2
-rw-r--r--packet.c8
-rw-r--r--progressmeter.c3
-rw-r--r--readconf.c7
-rw-r--r--readconf.h4
-rw-r--r--readpass.c2
-rw-r--r--rsa.c6
-rw-r--r--scard.c8
-rw-r--r--scard.h4
-rw-r--r--scp.c3
-rw-r--r--servconf.c8
-rw-r--r--servconf.h4
-rw-r--r--serverloop.c8
-rw-r--r--session.c15
-rw-r--r--session.h6
-rw-r--r--sftp-client.c12
-rw-r--r--sftp-common.c6
-rw-r--r--sftp-common.h7
-rw-r--r--sftp-glob.c4
-rw-r--r--sftp-server.c12
-rw-r--r--sftp.c6
-rw-r--r--ssh-add.c5
-rw-r--r--ssh-agent.c5
-rw-r--r--ssh-dss.c5
-rw-r--r--ssh-gss.h4
-rw-r--r--ssh-keygen.c3
-rw-r--r--ssh-keyscan.c7
-rw-r--r--ssh-keysign.c6
-rw-r--r--ssh-rsa.c6
-rw-r--r--ssh.c7
-rw-r--r--ssh.h16
-rw-r--r--sshconnect.c6
-rw-r--r--sshconnect.h11
-rw-r--r--sshconnect1.c14
-rw-r--r--sshconnect2.c9
-rw-r--r--sshd.c18
-rw-r--r--sshlogin.c4
-rw-r--r--sshlogin.h9
-rw-r--r--sshpty.c7
-rw-r--r--sshpty.h10
-rw-r--r--sshtty.c4
-rw-r--r--ttymodes.c6
-rw-r--r--uidswap.c5
-rw-r--r--uidswap.h11
-rw-r--r--uuencode.c4
-rw-r--r--uuencode.h8
-rw-r--r--xmalloc.c3
-rw-r--r--xmalloc.h7
133 files changed, 584 insertions, 412 deletions
diff --git a/ChangeLog b/ChangeLog
index b955ea8a..7f48d236 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -54,6 +54,34 @@
- stevesk@cvs.openbsd.org 2006/08/01 23:36:12
[authfile.c channels.c progressmeter.c scard.c servconf.c ssh.c]
clean extra spaces
+ - deraadt@cvs.openbsd.org 2006/08/03 03:34:42
+ [OVERVIEW atomicio.c atomicio.h auth-bsdauth.c auth-chall.c auth-krb5.c]
+ [auth-options.c auth-options.h auth-passwd.c auth-rh-rsa.c auth-rhosts.c]
+ [auth-rsa.c auth-skey.c auth.c auth.h auth1.c auth2-chall.c auth2-gss.c]
+ [auth2-hostbased.c auth2-kbdint.c auth2-none.c auth2-passwd.c ]
+ [auth2-pubkey.c auth2.c authfd.c authfd.h authfile.c bufaux.c bufbn.c]
+ [buffer.c buffer.h canohost.c channels.c channels.h cipher-3des1.c]
+ [cipher-bf1.c cipher-ctr.c cipher.c cleanup.c clientloop.c compat.c]
+ [compress.c deattack.c dh.c dispatch.c dns.c dns.h fatal.c groupaccess.c]
+ [groupaccess.h gss-genr.c gss-serv-krb5.c gss-serv.c hostfile.c kex.c]
+ [kex.h kexdh.c kexdhc.c kexdhs.c kexgex.c kexgexc.c kexgexs.c key.c]
+ [key.h log.c log.h mac.c match.c md-sha256.c misc.c misc.h moduli.c]
+ [monitor.c monitor_fdpass.c monitor_mm.c monitor_mm.h monitor_wrap.c]
+ [monitor_wrap.h msg.c nchan.c packet.c progressmeter.c readconf.c]
+ [readconf.h readpass.c rsa.c scard.c scard.h scp.c servconf.c servconf.h]
+ [serverloop.c session.c session.h sftp-client.c sftp-common.c]
+ [sftp-common.h sftp-glob.c sftp-server.c sftp.c ssh-add.c ssh-agent.c]
+ [ssh-dss.c ssh-gss.h ssh-keygen.c ssh-keyscan.c ssh-keysign.c ssh-rsa.c]
+ [ssh.c ssh.h sshconnect.c sshconnect.h sshconnect1.c sshconnect2.c]
+ [sshd.c sshlogin.c sshlogin.h sshpty.c sshpty.h sshtty.c ttymodes.c]
+ [uidswap.c uidswap.h uuencode.c uuencode.h xmalloc.c xmalloc.h]
+ [loginrec.c loginrec.h openbsd-compat/port-aix.c openbsd-compat/port-tun.h]
+ almost entirely get rid of the culture of ".h files that include .h files"
+ ok djm, sort of ok stevesk
+ makes the pain stop in one ea