Differences From Artifact [ace4d63e01]:
- File kmem/mem.h — part of check-in [6479e060a3] at 2019-07-26 09:51:02 on branch trunk — major update. fix ridiculous old type size determination mechanism. mmap is still broken and i'm not sure why; the syscall does not appear to be going through correctly - see posix_mmap, kmheapa, and kcore/testbin.exe.fn (user: lexi, size: 565) [annotate] [blame] [check-ins using]
To Artifact [e8670496c8]:
- File kmem/mem.h — part of check-in [926d05a4ce] at 2019-07-27 03:55:06 on branch trunk — add docs/manifesto for kfile; add initial kfile headers and function prototypes; update headers to include c++ extern guards so libk functions can be used from c++ (user: lexi, size: 634) [annotate] [blame] [check-ins using]
1 1 #ifndef KImem 2 2 #define KImem 3 3 #include <k/type.h> 4 4 5 5 #ifndef KFclean 6 6 # define Kmsz(e) ( sizeof (e) / sizeof (e) [0] ) 7 7 #endif 8 + 9 +#ifdef __cplusplus 10 +extern "C" { 11 +#endif 8 12 9 13 typedef enum kmkind { 10 14 kmkind_none, 11 15 kmkind_heap, 12 16 kmkind_pool, 13 17 kmkind_ref, 14 18 kmkind_tree ................................................................................ 35 39 kmcell* cell; 36 40 } kmptr; 37 41 38 42 /* heap functions */ 39 43 40 44 void* kmheapa(sz); 41 45 void kmheapf(void*); 46 + 47 +#ifdef __cplusplus 48 +} 49 +#endif 42 50 43 51 #endif