*-user: Improve documentation for lock_user function
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
@@ -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
@@ -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
Quoted 4 lines · Stefan Weil
Add a missing "function" and replace "and" by "any". BSD und Linux use the same documentation here, so fix both.
Signed-off-by Stefan Weil <[email protected]>
-- PMM
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
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
Michael Tokarev
AppliedQuoted 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