From: Mike Frysinger <vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: Christopher Yeoh <cyeoh-8fk3Idey6ehBDgjK7y7TUQ@public.gmane.org>,
linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] process_vm_{read,write}v(3): initial man pages
Date: Tue, 24 Apr 2012 13:49:29 -0400 [thread overview]
Message-ID: <201204241349.31377.vapier@gentoo.org> (raw)
In-Reply-To: <CAKgNAkg2ag9cR217km4vLM0kZYANfayNt=4mvfiObnL4LY3ztQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
[-- Attachment #1: Type: Text/Plain, Size: 1985 bytes --]
On Tuesday 24 April 2012 05:11:54 Michael Kerrisk (man-pages) wrote:
> The
> .BR process_vm_readv ()
> system call transfers data from the remote process to the local process.
> The data to be transferred is identified by
> .IR remote_iov
> and
> .IR riovcnt :
> .IR remote_iov
> is a pointer to an array describing address ranges in the process
> .IR pid ,
maybe add the word "remote" here:
... in the remote process pid, ...
> The data is transferred to the locations specified by
> .IR local_iov
> and
> .IR liovcnt :
> .IR local_iov
> is a pointer to an array describing address ranges in the calling process,
calling -> local
> The
> .BR process_vm_writev ()
> system call is the converse of
> .BR process_vm_readv ()\(emit
this renders as:
... process_vm_readv()—it transfers ...
were you going to kill off that weird dash, or just add spacing around it ?
> Other than the direction of the transfer, the arguments
> .IR liovcnt ,
> .IR local_iov ,
> .IR liovcnt ,
> and
> .IR remote_iov
> have the same meaning as for
> .BR process_vm_readv ().
that second liovcnt is supposed to be riovcnt
> Note, however, that these system calls do not check the memory regions
> in the remote process until just before doing the read/write.
> Consequently, a partial read/write (see RETURN VALUE)
should that RETURN VALUE be bolded ?
> may result if one of the
> .I remote_iov
> elements points to an invalid memory region in the remote process.
> No further reads/writes will be attempted beyond that point.
> Keep this in mind when attempting to read data of unknown length
> (such as C strings that are null-terminated) from a remote process,
> by avoiding spanning memory pages (typically 4KiB) in a single remote
> .I iovec
> element.
> (Instead, split the remote read into two
> .I remove_iov
> elements and have them merge back into a single write array entry.
maybe change "array" to "local_iov"
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2012-04-24 17:49 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-10 5:42 [PATCH] process_vm_{read,write}v(3): initial man pages Mike Frysinger
[not found] ` <1331358148-17235-1-git-send-email-vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2012-03-19 20:45 ` Michael Kerrisk (man-pages)
[not found] ` <CAKgNAkjhzh+zZ+GhOcbKsZpkeAgn6ua5K=zS=0_AUsUQ3GsQ_A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-03-20 0:50 ` Mike Frysinger
[not found] ` <201203192050.48882.vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2012-03-20 6:27 ` Michael Kerrisk (man-pages)
[not found] ` <CAKgNAkg=3KokH5zFwThOsHt4gaM4fqcauFdmtihCgcFEV8_z1A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-03-21 3:25 ` Christopher Yeoh
2012-03-21 4:05 ` Mike Frysinger
2012-03-21 3:57 ` Mike Frysinger
2012-03-20 6:30 ` Michael Kerrisk (man-pages)
[not found] ` <CAKgNAkj-bss8Tuq3jcPMRpsKCfKgHGSemq5emS48eBXi2JXA_w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-03-21 4:09 ` Mike Frysinger
2012-03-21 4:13 ` Christopher Yeoh
2012-03-21 15:43 ` Mike Frysinger
[not found] ` <201203211143.37042.vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2012-03-21 18:29 ` Michael Kerrisk (man-pages)
[not found] ` <CAKgNAkiNiG42ZtjYszYWBQWsvsk+c-mHhucER6Umt3esUvRCKg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-03-29 18:42 ` Michael Kerrisk (man-pages)
[not found] ` <CAKgNAkiEF6yTN-S-7-7L3Bu+QQyBepgocQM5S=CAOZ+npBQmEQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-04-02 2:03 ` Christopher Yeoh
2012-04-14 1:08 ` Michael Kerrisk (man-pages)
2012-03-29 19:17 ` Mike Frysinger
[not found] ` <201203291517.46815.vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2012-04-14 1:07 ` Michael Kerrisk (man-pages)
[not found] ` <CAKgNAkiKL64_H2QT6v0hsP-=cM3w=wGJbjaph+JMq6R+Knhysg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-04-14 1:10 ` Michael Kerrisk (man-pages)
2012-04-14 4:36 ` Mike Frysinger
[not found] ` <201204140036.28834.vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2012-04-14 21:22 ` Michael Kerrisk (man-pages)
[not found] ` <CAKgNAkjh46Bpar7qkJBn_r4D1qtFkbK_QLVfE3ESgEuaYMGp5g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-04-22 18:56 ` Michael Kerrisk (man-pages)
2012-04-24 4:24 ` Mike Frysinger
[not found] ` <201204240024.56967.vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2012-04-24 9:07 ` Michael Kerrisk (man-pages)
[not found] ` <CAKgNAki+hiCAdGe9ExFsY2MwsLE=yvHib+nb5WQbXqtBXCqHMw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-04-24 9:11 ` Michael Kerrisk (man-pages)
[not found] ` <CAKgNAkg2ag9cR217km4vLM0kZYANfayNt=4mvfiObnL4LY3ztQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-04-24 17:49 ` Mike Frysinger [this message]
[not found] ` <201204241349.31377.vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2012-04-25 2:16 ` Michael Kerrisk (man-pages)
[not found] ` <CAKgNAkj2hUUZCpG7F-1VpnAeNuM0aHtSqvoK26UbSj3bxnrsog-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-11-19 19:01 ` Mike Frysinger
[not found] ` <201211191401.10726.vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2013-03-03 4:05 ` Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201204241349.31377.vapier@gentoo.org \
--to=vapier-abrp7r+bbdudnm+yrofe0a@public.gmane.org \
--cc=cyeoh-8fk3Idey6ehBDgjK7y7TUQ@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.