Differences From Artifact [4d62b7403b]:
- File kmem/mem.h — part of check-in [a14ceee056] at 2019-06-27 21:39:17 on branch trunk — development milestone (user: lexi, size: 428) [annotate] [blame] [check-ins using]
To Artifact [551899b415]:
- File kmem/mem.h — part of check-in [51af496851] at 2019-06-28 04:48:43 on branch trunk — add Kmsz macro (user: lexi, size: 501) [annotate] [blame] [check-ins using]
1 1 #ifndef KImem 2 2 #define KImem 3 3 #include <k/type.h> 4 + 5 +#ifndef KFclean 6 +# define Kmsz(e) ( sizeof (e) / sizeof (e) [0] ) 7 +#endif 4 8 5 9 typedef enum kmkind { 6 10 kmkind_none, 7 11 kmkind_heap, 8 12 kmkind_pool, 9 13 kmkind_ref, 10 14 kmkind_tree