]> git.proxmox.com Git - qemu.git/commitdiff
*-user: Improve documentation for lock_user function
authorStefan Weil <sw@weilnetz.de>
Thu, 12 Sep 2013 17:57:15 +0000 (19:57 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 20 Sep 2013 16:09:24 +0000 (20:09 +0400)
Add a missing "function" and replace "and" by "any".
BSD and Linux use the same documentation here, so fix both.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
bsd-user/qemu.h
linux-user/qemu.h

index 1f8ec6ee7a0961f346381b3f7337399a615c376e..ddc74ed0d725b791eba066f2ae2b46e5a3cf8442 100644 (file)
@@ -323,9 +323,9 @@ abi_long copy_from_user(void *hptr, abi_ulong gaddr, size_t len);
 abi_long copy_to_user(abi_ulong gaddr, void *hptr, size_t len);
 
 /* Functions for accessing guest memory.  The tget and tput functions
-   read/write single values, byteswapping as necessary.  The lock_user
+   read/write single values, byteswapping as necessary.  The lock_user function
    gets a pointer to a contiguous area of guest memory, but does not perform
-   and byteswapping.  lock_user may return either a pointer to the guest
+   any byteswapping.  lock_user may return either a pointer to the guest
    memory, or a temporary buffer.  */
 
 /* Lock an area of guest memory into the host.  If copy is true then the
index 4422dfc47a33c1b8a7771153f07d1016fc7274fb..617cac1775a9a4817361c87c2559c831f6f00a85 100644 (file)
@@ -380,9 +380,9 @@ abi_long copy_from_user(void *hptr, abi_ulong gaddr, size_t len);
 abi_long copy_to_user(abi_ulong gaddr, void *hptr, size_t len);
 
 /* Functions for accessing guest memory.  The tget and tput functions
-   read/write single values, byteswapping as necessary.  The lock_user
+   read/write single values, byteswapping as necessary.  The lock_user function
    gets a pointer to a contiguous area of guest memory, but does not perform
-   and byteswapping.  lock_user may return either a pointer to the guest
+   any byteswapping.  lock_user may return either a pointer to the guest
    memory, or a temporary buffer.  */
 
 /* Lock an area of guest memory into the host.  If copy is true then the