Lab2
|
00001 #ifndef __LMLIB_H 00002 #define __LMLIB_H 00003 00016 typedef struct { 00017 phys_bytes phys; 00018 void *virtual; 00019 unsigned long size; 00020 } mmap_t; 00021 00029 int lm_init(void); 00030 00042 void *lm_alloc(unsigned long size, mmap_t *map); 00043 00053 void lm_free(mmap_t *map); 00054 00055 #endif /*__LMLIB_H */