_allocmem.c

Go to the documentation of this file.
00001 #include <lib.h>
00002 #define allocmem        _allocmem
00003 #include <unistd.h>
00004 
00005 
00006 PUBLIC int allocmem(size, base)
00007 phys_bytes size;                        /* size of mem chunk requested */
00008 phys_bytes *base;                       /* return base address */
00009 {
00010   message m;
00011   m.m4_l1 = size;               
00012   if (_syscall(MM, ALLOCMEM, &m) < 0) return(-1);
00013   *base = m.m4_l2;
00014   return(0);
00015 }
00016 

Generated on Fri Apr 14 22:57:26 2006 for minix by  doxygen 1.4.6