Changeset aa85487 in mainline for kernel/generic/src/mm/slab.c
- Timestamp:
- 2010-03-07T15:11:56Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- aadf01e
- Parents:
- 2e99277 (diff), 137691a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/slab.c
r2e99277 raa85487 130 130 /** Caches for malloc */ 131 131 static slab_cache_t *malloc_caches[SLAB_MAX_MALLOC_W - SLAB_MIN_MALLOC_W + 1]; 132 static c har *malloc_names[] = {132 static const char *malloc_names[] = { 133 133 "malloc-16", 134 134 "malloc-32", … … 571 571 572 572 /** Initialize allocated memory as a slab cache */ 573 static void 574 _slab_cache_create(slab_cache_t *cache, char *name, size_t size, size_t align, 575 int (*constructor)(void *obj, int kmflag), int (*destructor)(void *obj), 576 int flags) 573 static void _slab_cache_create(slab_cache_t *cache, const char *name, 574 size_t size, size_t align, int (*constructor)(void *obj, int kmflag), 575 int (*destructor)(void *obj), int flags) 577 576 { 578 577 int pages; … … 631 630 632 631 /** Create slab cache */ 633 slab_cache_t * 634 slab_cache_create(char *name, size_t size, size_t align, 632 slab_cache_t *slab_cache_create(const char *name, size_t size, size_t align, 635 633 int (*constructor)(void *obj, int kmflag), int (*destructor)(void *obj), 636 634 int flags) … … 853 851 cache = list_get_instance(cur, slab_cache_t, link); 854 852 855 c har *name = cache->name;853 const char *name = cache->name; 856 854 uint8_t order = cache->order; 857 855 size_t size = cache->size; … … 896 894 NULL, NULL, SLAB_CACHE_MAGDEFERRED); 897 895 } 898 #ifdef CONFIG_DEBUG 896 #ifdef CONFIG_DEBUG 899 897 _slab_initialized = 1; 900 898 #endif
Note:
See TracChangeset
for help on using the changeset viewer.