All of lore.kernel.org
 help / color / mirror / Atom feed
* mbind and alignment
@ 2007-04-02 20:42 ` Samuel Thibault
  0 siblings, 0 replies; 10+ messages in thread
From: Samuel Thibault @ 2007-04-02 20:42 UTC (permalink / raw)
  To: linux-kernel, linux-mm

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

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

end of thread, other threads:[~2007-04-04 17:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-02 20:42 mbind and alignment Samuel Thibault
2007-04-02 20:42 ` Samuel Thibault
2007-04-03 21:27 ` Chuck Ebbert
2007-04-03 21:27   ` Chuck Ebbert
2007-04-04 11:52 ` Andi Kleen
2007-04-04 11:52   ` Andi Kleen
2007-04-04 12:26   ` Samuel Thibault
2007-04-04 12:26     ` Samuel Thibault
2007-04-04 17:19   ` Hugh Dickins
2007-04-04 17:19     ` Hugh Dickins

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.