The interface doesnt seem hard
mprotect(buf,len, MDISCARDABLE)
and then mprotect it back to something normal to use it. If the semantics
are "COW's the zero page if discarded else gives the existing page back"
then everything mallocish falls nicely into place.
Alan
-
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/