Changeset 1a48bcd in mainline for kernel/generic/include/mm/slab.h
- Timestamp:
- 2008-06-22T14:34:43Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 599d6f5
- Parents:
- 1e9d0e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/mm/slab.h
r1e9d0e3 r1a48bcd 54 54 55 55 /** Maximum wasted space we allow for cache */ 56 #define SLAB_MAX_BADNESS(cache) (((unsigned int) PAGE_SIZE << (cache)->order) >> 2) 56 #define SLAB_MAX_BADNESS(cache) \ 57 (((unsigned int) PAGE_SIZE << (cache)->order) >> 2) 57 58 58 59 /* slab_reclaim constants */ … … 100 101 101 102 /* Computed values */ 102 uint8_t order; 103 uint8_t order; /**< Order of frames to be allocated */ 103 104 unsigned int objects; /**< Number of objects that fit in */ 104 105 … … 122 123 } slab_cache_t; 123 124 124 extern slab_cache_t * slab_cache_create(char *name, size_t size, size_t align, 125 int (*constructor)(void *obj, int kmflag), int (*destructor)(void *obj), 126 int flags); 127 extern void slab_cache_destroy(slab_cache_t *cache); 125 extern slab_cache_t *slab_cache_create(char *, size_t, size_t, 126 int (*)(void *, int), int (*)(void *), int); 127 extern void slab_cache_destroy(slab_cache_t *); 128 128 129 extern void * slab_alloc(slab_cache_t * cache, int flags);130 extern void slab_free(slab_cache_t * cache, void *obj);131 extern count_t slab_reclaim(int flags);129 extern void * slab_alloc(slab_cache_t *, int); 130 extern void slab_free(slab_cache_t *, void *); 131 extern count_t slab_reclaim(int); 132 132 133 133 /* slab subsytem initialization */ … … 139 139 140 140 /* malloc support */ 141 extern void * malloc(unsigned int size, int flags);142 extern void * realloc(void *ptr, unsigned int size, int flags);143 extern void free(void * ptr);141 extern void *malloc(unsigned int, int); 142 extern void *realloc(void *, unsigned int, int); 143 extern void free(void *); 144 144 #endif 145 145
Note:
See TracChangeset
for help on using the changeset viewer.