slab.h 525 B

1234567891011121314151617181920
  1. #ifndef SLAB_H
  2. #define SLAB_H
  3. #include <linux/types.h>
  4. #define SLAB_HWCACHE_ALIGN 1
  5. #define SLAB_PANIC 2
  6. #define SLAB_RECLAIM_ACCOUNT 0x00020000UL /* Objects are reclaimable */
  7. void *kmalloc(size_t size, gfp_t);
  8. void kfree(void *);
  9. void *kmem_cache_alloc(struct kmem_cache *cachep, int flags);
  10. void kmem_cache_free(struct kmem_cache *cachep, void *objp);
  11. struct kmem_cache *
  12. kmem_cache_create(const char *name, size_t size, size_t offset,
  13. unsigned long flags, void (*ctor)(void *));
  14. #endif /* SLAB_H */