From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: mbind and alignment
Date: Mon, 2 Apr 2007 22:42:02 +0200 [thread overview]
Message-ID: <20070402204202.GC3316@interface.famille.thibault.fr> (raw)
Hi,
mbind(start, len, ...) currently requires that "start" be page-aligned,
but not "len" (which automatically gets page-rounded up). This is a bit
odd:
- the userland type of start is void*, which people would expect to be a
pointer to some variable.
- start needing to be page-aligned but len not needing to is not very
consistent.
- none of this is documented in the manual page dated 2006-02-07
So one of those should probably be done to free people from headaches:
- document "start" requirement in the manual page
- require len to be aligned too, and document the requirements in the
manual page
- drop the "start" requirement and just round down the page + adjust
size automatically.
Samuel
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next reply other threads:[~2007-04-02 20:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-02 20:42 Samuel Thibault [this message]
2007-04-03 21:27 ` Chuck Ebbert
2007-04-04 11:52 ` Andi Kleen
2007-04-04 12:26 ` Samuel Thibault
2007-04-04 17:19 ` Hugh Dickins
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=20070402204202.GC3316@interface.famille.thibault.fr \
--to=samuel.thibault@ens-lyon.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox