1 #ifndef _VM_GLO_H 2 #define _VM_GLO_H 3 4 #include <minix/sys_config.h> 5 #include <minix/type.h> 6 #include <minix/param.h> 7 #include <sys/stat.h> 8 9 #include "vm.h" 10 #include "vmproc.h" 11 12 #if _MAIN 13 #undef EXTERN 14 #define EXTERN 15 #endif 16 17 #define VMP_EXECTMP _NR_PROCS 18 #define VMP_NR _NR_PROCS+1 19 20 EXTERN struct vmproc vmproc[VMP_NR]; 21 22 long enable_filemap; 23 24 typedef kinfo_t ixfer_kinfo_t; 25 EXTERN ixfer_kinfo_t kernel_boot_info; 26 27 #if SANITYCHECKS 28 EXTERN int nocheck; 29 EXTERN int incheck; 30 EXTERN int sc_lastline; 31 EXTERN const char *sc_lastfile; 32 #endif 33 34 extern struct minix_kerninfo *_minix_kerninfo; 35 36 /* mem types */ 37 EXTERN mem_type_t mem_type_anon, /* anonymous memory */ 38 mem_type_directphys, /* direct physical mapping memory */ 39 mem_type_anon_contig, /* physically contig anon memory */ 40 mem_type_cache, /* disk cache */ 41 mem_type_mappedfile, /* memory with file contents */ 42 mem_type_shared; /* memory shared by multiple processes */ 43 44 /* total number of memory pages */ 45 EXTERN int total_pages; 46 EXTERN int num_vm_instances; 47 48 #endif /* !_VM_GLO_H */ 49