Received: from eggs.gnu.org ([2001:4830:134:3::10]:48842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKB8x-0004tj-VG for qemu-devel@nongnu.org; Thu, 12 Sep 2013 13:57:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKB8t-00067t-4O for qemu-devel@nongnu.org; Thu, 12 Sep 2013 13:57:27 -0400 From: Stefan Weil Date: Thu, 12 Sep 2013 19:57:15 +0200 Message-Id: <1379008635-17714-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH] *-user: Improve documentation for lock_user function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Cc: qemu-trivial@nongnu.org, Blue Swirl , Riku Voipio , 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 --- bsd-user/qemu.h | 4 ++-- linux-user/qemu.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h index 325f564..1998af6 100644 --- a/bsd-user/qemu.h +++ b/bsd-user/qemu.h @@ -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 diff --git a/linux-user/qemu.h b/linux-user/qemu.h index 6ffe5a2..974c239 100644 --- a/linux-user/qemu.h +++ b/linux-user/qemu.h @@ -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 -- 1.7.9.5