MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_slab_page_init

Function rt_slab_page_init

src/slab.c:304–311  ·  view source on GitHub ↗

* Initialize the page allocator */

Source from the content-addressed store, hash-verified

302 * Initialize the page allocator
303 */
304static void rt_slab_page_init(struct rt_slab *slab, void *addr, rt_size_t npages)
305{
306 RT_ASSERT(addr != RT_NULL);
307 RT_ASSERT(npages != 0);
308
309 slab->page_list = RT_NULL;
310 rt_slab_page_free((rt_slab_t)(&slab->parent), addr, npages);
311}
312
313/**
314 * @brief This function will init slab memory management algorithm

Callers 1

rt_slab_initFunction · 0.85

Calls 1

rt_slab_page_freeFunction · 0.85

Tested by

no test coverage detected