lkml.org 
[lkml]   [2000]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: MADV_SPACEAVAIL and MADV_FREE in pre2-3
On Sat, 18 Mar 2000, Jamie Lokier wrote:
> David S. Miller wrote:
> > pre2-3 defines MADV_SPACEAVAIL in asm-alpha/mman.h and MADV_FREE in
> > asm-sparc/mman.h.
>
> > They are values provided by OSF and Solaris respectively.
> >
> > If this makes for a big issue wrt. glibc we could move them to
> > the OSF/Solaris emulation code on Alpha and Sparc but I think
> > this would be really silly and would like to not have to do this.
>
> Besides, MADV_FREE would be quite useful. MADV_DONTNEED doesn't do the
> right thing for free(3) and similar things.

MADV_FREE could easily be a synonym for msync(MS_INVALIDATE). that would
be good for application portability.

what does MADV_SPACEAVAIL do?

- Chuck Lever
--
corporate: <chuckl@netscape.com>
personal: <chucklever@netscape.net> or <cel@monkey.org>

The Linux Scalability project:
http://www.citi.umich.edu/projects/linux-scalability/


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.059 / U:3.280 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site