Searched refs:slab (Results 1 – 7 of 7) sorted by relevance
/DragonOS-0.1.2/kernel/src/mm/ |
D | slab.h | 36 struct slab struct 91 struct slab *slab_create(ul size, void *(*constructor)(void *vaddr, ul arg), void *(*destructor)(vo… 100 ul slab_destroy(struct slab *slab_pool); 109 void *slab_malloc(struct slab *slab_pool, ul arg); 119 ul slab_free(struct slab *slab_pool, void *addr, ul arg);
|
D | Makefile | 5 all:mm.o slab.o mm-stat.o vma.o mmap.o utils.o mmio.o mmio-buddy.o 10 slab.o: slab.c 11 $(CC) $(CFLAGS) -c slab.c -o slab.o
|
D | mm-stat.c | 17 extern const struct slab kmalloc_cache_group[16]; 122 for (int i = 0; i < sizeof(kmalloc_cache_group) / sizeof(struct slab); ++i) in __count_kmalloc_free() 137 for (int i = 0; i < sizeof(kmalloc_cache_group) / sizeof(struct slab); ++i) in __count_kmalloc_using() 152 for (int i = 0; i < sizeof(kmalloc_cache_group) / sizeof(struct slab); ++i) in __count_kmalloc_total()
|
D | slab.c | 4 struct slab kmalloc_cache_group[16] = 33 struct slab *slab_create(ul size, void *(*constructor)(void *vaddr, ul arg), void *(*destructor)(vo… in slab_create() 35 struct slab *slab_pool = (struct slab *)kmalloc(sizeof(struct slab), 0); in slab_create() 44 memset(slab_pool, 0, sizeof(struct slab)); in slab_create() 121 ul slab_destroy(struct slab *slab_pool) in slab_destroy() 163 void *slab_malloc(struct slab *slab_pool, ul arg) in slab_malloc() 289 ul slab_free(struct slab *slab_pool, void *addr, ul arg) in slab_free()
|
/DragonOS-0.1.2/docs/kernel/core_api/ |
D | mm-api.md | 46   释放从slab分配的内存。 265 | cache_used | 位于slab缓冲区中的已使用的内存大小 | 266 | cache_free | 位于slab缓冲区中的空闲的内存大小 |
|
/DragonOS-0.1.2/docs/introduction/ |
D | features.md | 16 - [x] slab分配器
|
/DragonOS-0.1.2/docs/community/ChangeLog/V0.1.x/ |
D | V0.1.0.md | 86 - 实现了slab分配器,用来分配小块的、具有对齐要求的内存
|