All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <andi-Vw/NltI1exuRpAAqCnN02g@public.gmane.org>
To: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	ak-VuQAYsv1563Yd54FQh9/CA@public.gmane.org
Subject: [PATCH] MAN: Clarify mremap.2 prototype
Date: Thu, 3 Jun 2010 11:08:18 +0200	[thread overview]
Message-ID: <20100603090818.GA4741@basil.fritz.box> (raw)

MAN: Clarify mremap.2 prototype

mremap sometimes accepts more arguments and sometimes less.
Clarify this in the prototype and initial description in the manpage.

Signed-off-by: Andi Kleen <ak-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>

---
 man2/mremap.2 |    8 ++++++++
 1 file changed, 8 insertions(+)

Index: man-pages-3.24/man2/mremap.2
===================================================================
--- man-pages-3.24.orig/man2/mremap.2
+++ man-pages-3.24/man2/mremap.2
@@ -39,6 +39,9 @@ mremap \- remap a virtual memory address
 .sp
 .BI "void *mremap(void *" old_address ", size_t " old_size ,
 .BI "             size_t " new_size ", int " flags );
+.sp
+.BI "void *mremap(void *" old_address ", size_t " old_size ,
+.BI "             size_t " new_size ", int " flags ", void *" new_address );
 .fi
 .SH DESCRIPTION
 .BR mremap ()
@@ -54,6 +57,11 @@ aligned.
 virtual memory block.
 \fInew_size\fP is the requested size of the
 virtual memory block after the resize.
+\fInew_address\fP is the new address to move the block to. Only valid when
+.I MREMAP_FIXED
+and
+.I MREMAP_MAYMOVE
+are specified. The function is declared in a way that this argument can be omitted.
 
 In Linux the memory is divided into pages.
 A user process has (one or)
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

             reply	other threads:[~2010-06-03  9:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-03  9:08 Andi Kleen [this message]
     [not found] ` <20100603090818.GA4741-u0/ZJuX+froe6aEkudXLsA@public.gmane.org>
2010-06-10  4:06   ` [PATCH] MAN: Clarify mremap.2 prototype Michael Kerrisk
     [not found]     ` <AANLkTim4NYbt66oTsxS7ECTzi63gpli6GuSOBgR2ZlR7-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-06-10 17:15       ` Andi Kleen
     [not found]         ` <20100610171503.GG19561-u0/ZJuX+froe6aEkudXLsA@public.gmane.org>
2010-06-11  8:32           ` Michael Kerrisk
     [not found]             ` <AANLkTiltSNhhRO0wxqLA0nNAPv70LBclMQTVKUXQd5hE-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-06-11  8:38               ` Andi Kleen
     [not found]                 ` <20100611083810.GG6864-u0/ZJuX+froe6aEkudXLsA@public.gmane.org>
2010-06-11 14:34                   ` Michael Kerrisk

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=20100603090818.GA4741@basil.fritz.box \
    --to=andi-vw/nlti1exurpaaqcnn02g@public.gmane.org \
    --cc=ak-VuQAYsv1563Yd54FQh9/CA@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.