Skip to contentSkip to conversation

*-user: Improve documentation for lock_user function

PATCH Applied Stefan Weil 4 participants 5 messages Sep 12, 2013 – Sep 14, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 *-user: Improve documentation for lock_user function

Add a missing "function" and replace "and" by "any". BSD und Linux use the same documentation here, so fix both.

---
 bsd-user/qemu.h   |    4 ++--
 linux-user/qemu.h |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
bsd-user/qemu.h +2 -2
index 325f564..1998af6 100644
@@ -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
linux-user/qemu.h +2 -2
index 6ffe5a2..974c239 100644
@@ -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
Signature · 1 line
1.7.9.5
#2 lore raw
In reply to Stefan Weil
Quoted 2 lines · Stefan Weil

Add a missing "function" and replace "and" by "any". BSD und Linux use the same documentation here, so fix both.

s/und/and/

Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
#3 lore raw

Am 12.09.2013 20:26, schrieb Eric Blake:

Quoted 5 lines · Stefan Weil
Quoted 2 lines

Add a missing "function" and replace "and" by "any". BSD und Linux use the same documentation here, so fix both.

s/und/and/

Indeed, thanks. Well, I am German, so I may write "und". :-)

Perhaps this can be fixed when the patch is added to qemu-trivial, or I send an update, or we leave it as it is to document that I not only fix typos, but also add new ones. ;-)

Stefan

#4 lore raw
In reply to Stefan Weil
Quoted 2 lines · Stefan Weil

Add a missing "function" and replace "and" by "any". BSD und Linux use the same documentation here, so fix both.

Thanks, applied to the trivial-patches queue (with the commit comment fixup).

/mjt