minix/servers
Ben Gras e8eeebcd47 vfs: mmap support
. libc: add vfs_mmap, a way for vfs to initiate mmap()s.
	  This is a good special case to have as vfs is a slightly
	  different client from regular user processes. It doesn't do it
	  for itself, and has the dev & inode info already so the callback
	  to VFS for the lookup isn't necessary. So it has different info
	  to have to give to VM.
	. libc: also add minix_mmap64() that accepts a 64-bit offset, even
	  though our off_t is still 32 bit now.
	. to support mmap, we need to create new references to FD's (such
	  as an FD) so that the mmapped object can never be removed even if
	  all FD's are closed. To do that we conceptually dup the
	  filedescriptor into a new range that is only visible to the system.
	  So there are FDS_PER_PROCESS fd's, which is more than OPEN_MAX,
	  per process, and user processes can still use up to OPEN_MAX
	  FD's. mmap()ped objects then get extra reference in the invisible
	  range so user processes can't close them. The in-vfs fd_set is
	  of size FDS_PER_PROCESS.
	. On exec() time, try to mmap() in the executable if available.
	  (It is not yet available in this commit.)
	. To support mmap(), add do_vm_call that allows VM to lookup
	  (to ino+dev), do i/o from and close FD's on behalf of other
	  processes.
	. To make this possible, a few functions have 2 more arguments
	  to make the target process explicit (instead of the implicit
	  global fp) and to specify whether the request is from a user
	  process or the system (which implies whether FD's starting at
	  OPEN_MAX are valid). These are close_fd, common_open, actual_llseek,
	  actual_read_write_peek, get_fd and get_filp2.

Change-Id: I831551e45a6781c74313c450eb9c967a68505932
2013-05-27 13:56:54 +00:00
..
devman Removing obsolete _MINIX define 2013-02-26 09:44:20 +00:00
ds Cleanup: Remove minix.bootprog.mk 2013-03-06 11:56:56 +01:00
ext2 ext2: annotate cache blocks with inode metadata 2013-04-26 15:39:07 +00:00
hgfs Create SFFS library out of HGFS 2012-04-09 18:08:26 +02:00
inet Change function prototype to use endpoint_t instead of int 2013-04-23 17:15:15 +02:00
init Move MINIX reboot definitions into minix/reboot.h 2013-03-20 16:50:01 +00:00
ipc Removing obsolete _MINIX define 2013-02-26 09:44:20 +00:00
is vfs: mmap support 2013-05-27 13:56:54 +00:00
iso9660fs filesystems: return ENOSYS for REQ_PEEK 2013-04-24 10:18:10 +00:00
lwip make minix lwip make explicit use of 'int' 2013-04-11 22:37:30 +02:00
mfs libminixfs, mfs, ext2: may re-evaluate cache size 2013-04-26 13:57:08 +00:00
pfs vfs: mmap support 2013-05-27 13:56:54 +00:00
pm vfs: mmap support 2013-05-27 13:56:54 +00:00
procfs vfs: mmap support 2013-05-27 13:56:54 +00:00
rs libexec: mmap support, prealloc variants 2013-04-24 10:18:16 +00:00
sched Cleanup: Remove minix.bootprog.mk 2013-03-06 11:56:56 +01:00
vbfs Add VBFS: VirtualBox Shared Folder File System 2012-04-11 00:27:48 +02:00
vfs vfs: mmap support 2013-05-27 13:56:54 +00:00
vm arm:also use 1MB sections for mapping AM335X device memory. 2013-05-24 15:47:04 +02:00
Makefile lwip (inet's alternative) is compiled by default 2013-03-25 16:51:25 +01:00
Makefile.inc Removing obsolete _MINIX define 2013-02-26 09:44:20 +00:00