mm: 9ns: Add support for mmap
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 1 Mar 2018 19:29:32 +0000 (14:29 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 30 Apr 2018 18:31:44 +0000 (14:31 -0400)
commit50efc13fee042f62bc0c2ad9d5f764028cf6dce3
treef26613770b82131f3492c6bfc227e47545204795
parentbfa84e218ae2e81a3c1e48356e140e959ddfbe78
mm: 9ns: Add support for mmap

I'm not 100% on it, but I think the device mmap op will return an fs_file,
and once the VFS is out, we can integrate that more tightly with the mmap
code.

For instance, the assumption of the existence of the page cache can get
pushed into the fs_file and hidden behind ops, so that we can mmap
arbitrary objects.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/mm.h
kern/include/ns.h
kern/include/tree_file.h
kern/src/mm.c
kern/src/ns/tree_file.c