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