pkgin_all: script to auto-install all packages
[minix.git] / lib / libsys / vm_umap.c
bloba1967d2423f95127af4511f02862c1a5822e7a32
2 #include "syslib.h"
4 #include <minix/vm.h>
6 /*===========================================================================*
7 * vm_umap *
8 *===========================================================================*/
9 int vm_umap(int seg, vir_bytes offset, vir_bytes len, phys_bytes *addr)
11 message m;
12 int result;
14 m.VMU_SEG = seg;
15 m.VMU_OFFSET = (char *) offset;
16 m.VMU_LENGTH = (char *) len;
17 result = _taskcall(VM_PROC_NR, VM_UMAP, &m);
18 *addr = (phys_bytes) m.VMU_RETADDR;
20 return result;