Re: missing madvise functionality

From: Andrew Morton
Date: Wed Apr 04 2007 - 14:51:54 EST


On Wed, 4 Apr 2007 06:09:18 -0700 William Lee Irwin III <wli@xxxxxxxxxxxxxx> wrote:

>
> On Tue, Apr 03, 2007 at 04:29:37PM -0400, Jakub Jelinek wrote:
> > void *
> > tf (void *arg)
> > {
> > (void) arg;
> > size_t ps = sysconf (_SC_PAGE_SIZE);
> > void *p = mmap (NULL, 128 * ps, PROT_READ | PROT_WRITE,
> > MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
> > if (p == MAP_FAILED)
> > exit (1);
> > int i;
>
> Oh dear.

what's all this about?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/