Add basic project files, together with local stubs of required headers. Update tools/include/slab.h to include definitions used by memblock.
Showing the changes to tools/include/linux (1 of 16 files). Show all
Unified · Split
| @@ -13,6 +13,16 @@ · 12 unmodified lines | ||
| 13 | 13 | void *kmalloc(size_t size, gfp_t gfp); |
| 14 | 14 | void kfree(void *p); |
| 15 | 15 | |
| 16 | +bool slab_is_available(void); | |
| 17 | + | |
| 18 | +enum slab_state { | |
| 19 | + DOWN, | |
| 20 | + PARTIAL, | |
| 21 | + PARTIAL_NODE, | |
| 22 | + UP, | |
| 23 | + FULL | |
| 24 | +}; | |
| 25 | + | |
| 16 | 26 | static inline void *kzalloc(size_t size, gfp_t gfp) |
| 17 | 27 | { |
| 18 | 28 | return kmalloc(size, gfp | __GFP_ZERO); |