]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - tools/testing/radix-tree/linux/slab.h
Merge branch 'for-linus-4.7' of git://git.kernel.org/pub/scm/linux/kernel/git/mason...
[karo-tx-linux.git] / tools / testing / radix-tree / linux / slab.h
1 #ifndef SLAB_H
2 #define SLAB_H
3
4 #include <linux/types.h>
5
6 #define SLAB_HWCACHE_ALIGN 1
7 #define SLAB_PANIC 2
8 #define SLAB_RECLAIM_ACCOUNT    0x00020000UL            /* Objects are reclaimable */
9
10 static inline int gfpflags_allow_blocking(gfp_t mask)
11 {
12         return 1;
13 }
14
15 struct kmem_cache {
16         int size;
17         void (*ctor)(void *);
18 };
19
20 void *kmem_cache_alloc(struct kmem_cache *cachep, int flags);
21 void kmem_cache_free(struct kmem_cache *cachep, void *objp);
22
23 struct kmem_cache *
24 kmem_cache_create(const char *name, size_t size, size_t offset,
25         unsigned long flags, void (*ctor)(void *));
26
27 #endif          /* SLAB_H */