Changes in kernel/generic/src/sysinfo/sysinfo.c [7f11dc6:68f4671] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/sysinfo/sysinfo.c
r7f11dc6 r68f4671 53 53 54 54 /** Sysinfo SLAB cache */ 55 static slab_cache_t *sysinfo_item_ cache;55 static slab_cache_t *sysinfo_item_slab; 56 56 57 57 /** Sysinfo lock */ … … 71 71 item->next = NULL; 72 72 73 return EOK;73 return 0; 74 74 } 75 75 … … 98 98 void sysinfo_init(void) 99 99 { 100 sysinfo_item_ cache= slab_cache_create("sysinfo_item_t",100 sysinfo_item_slab = slab_cache_create("sysinfo_item_t", 101 101 sizeof(sysinfo_item_t), 0, sysinfo_item_constructor, 102 102 sysinfo_item_destructor, SLAB_CACHE_MAGDEFERRED); … … 204 204 205 205 *psubtree = 206 (sysinfo_item_t *) slab_alloc(sysinfo_item_ cache, 0);206 (sysinfo_item_t *) slab_alloc(sysinfo_item_slab, 0); 207 207 assert(*psubtree); 208 208 … … 268 268 269 269 sysinfo_item_t *item = 270 (sysinfo_item_t *) slab_alloc(sysinfo_item_ cache, 0);270 (sysinfo_item_t *) slab_alloc(sysinfo_item_slab, 0); 271 271 assert(item); 272 272
Note:
See TracChangeset
for help on using the changeset viewer.