You can do
ptr=mmap(blah)
mlock(ptr, ...)
munmap(ptr, len)
> Does anyone know if there it/will be a way to do unbuffered mmap() ?
> I think streaming apps would benefit quite a bit from this.
mmap requires buffering - you are sharing the page with the system page
cache. If you mean you want an mgoaway() to go with munmap() thats what
madvise() provides on some other systems but not Linux yet
-
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/