Christoph> mount -t hugetlbfs whocares /huge
Christoph> fd = open("/huge/nose", ..)
Christoph> mmap(.., fd, ..)
One potential downside of this is that programmers might expect
mremap(), mprotect() etc. to work on the returned memory at the
granularity of base-pages. I'm not sure though whether that was part
of the reason Linus wanted separate syscalls.
--david
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/