public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] MAN: Clarify mremap.2 prototype
@ 2010-06-03  9:08 Andi Kleen
       [not found] ` <20100603090818.GA4741-u0/ZJuX+froe6aEkudXLsA@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Andi Kleen @ 2010-06-03  9:08 UTC (permalink / raw)
  To: linux-man-u79uwXL29TY76Z2rM5mHXA,
	mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, ak-VuQAYsv1563Yd54FQh9/CA

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-06-11 14:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-03  9:08 [PATCH] MAN: Clarify mremap.2 prototype Andi Kleen
     [not found] ` <20100603090818.GA4741-u0/ZJuX+froe6aEkudXLsA@public.gmane.org>
2010-06-10  4:06   ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox