Changes in kernel/generic/include/mm/slab.h [a000878c:da1bafb] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/mm/slab.h
ra000878c rda1bafb 84 84 } slab_mag_cache_t; 85 85 86 87 86 typedef struct { 88 87 const char *name; … … 94 93 size_t size; 95 94 96 int (*constructor)(void *obj, int kmflag);97 int (*destructor)(void *obj);95 int (*constructor)(void *obj, unsigned int kmflag); 96 size_t (*destructor)(void *obj); 98 97 99 98 /** Flags changing behaviour of cache */ 100 int flags;99 unsigned int flags; 101 100 102 101 /* Computed values */ 103 uint8_t order; 104 unsigned int objects; /**< Number of objects that fit in */102 uint8_t order; /**< Order of frames to be allocated */ 103 size_t objects; /**< Number of objects that fit in */ 105 104 106 105 /* Statistics */ … … 109 108 atomic_t cached_objs; 110 109 /** How many magazines in magazines list */ 111 atomic_t magazine_counter; 110 atomic_t magazine_counter; 112 111 113 112 /* Slabs */ … … 124 123 125 124 extern slab_cache_t *slab_cache_create(const char *, size_t, size_t, 126 int (*)(void *, int), int (*)(void *),int);125 int (*)(void *, unsigned int), size_t (*)(void *), unsigned int); 127 126 extern void slab_cache_destroy(slab_cache_t *); 128 127 129 extern void * slab_alloc(slab_cache_t *, int);128 extern void * slab_alloc(slab_cache_t *, unsigned int); 130 129 extern void slab_free(slab_cache_t *, void *); 131 extern size_t slab_reclaim( int);130 extern size_t slab_reclaim(unsigned int); 132 131 133 132 /* slab subsytem initialization */ … … 139 138 140 139 /* malloc support */ 141 extern void *malloc( unsigned int,int);142 extern void *realloc(void *, unsigned int,int);140 extern void *malloc(size_t, unsigned int); 141 extern void *realloc(void *, size_t, unsigned int); 143 142 extern void free(void *); 144 143
Note:
See TracChangeset
for help on using the changeset viewer.