mm: Use struct file_or_chan for VMR files
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 28 Feb 2018 21:52:00 +0000 (16:52 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 6 Apr 2018 19:23:01 +0000 (15:23 -0400)
commit472cc36c8adc056d18077cfa902b7b7d5803577e
tree9c102a343ef7ea82fd28bce12b13afd83a79d2eb
parent3de82fed3218f8933d0d74ad5a33cc2149a6d6f2
mm: Use struct file_or_chan for VMR files

As they say, all problems in CS can be solved with a layer of indirection.
The file_or_chan struct hides the details of whether or not we're talking
to a file or a chan.  This will ease the transition from the VFS to 9ns.

The chan stuff isn't implemented yet - that'll require a few more changes.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
17 files changed:
kern/drivers/dev/proc.c
kern/include/elf.h
kern/include/linux_compat.h
kern/include/mm.h
kern/include/process.h
kern/include/profiler.h
kern/include/vfs.h
kern/src/elf.c
kern/src/kdebug.c
kern/src/ktest/pb_ktests.c
kern/src/mm.c
kern/src/monitor.c
kern/src/pagemap.c
kern/src/process.c
kern/src/profiler.c
kern/src/syscall.c
kern/src/vfs.c