Skip to content

Commit 5b51b0f

Browse files
committed
[kernel][memory] Formatting code
1 parent 7e612bb commit 5b51b0f

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

src/mem.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,13 +166,13 @@ static void plug_holes(struct rt_small_mem *m, struct rt_small_mem_item *mem)
166166
* @brief This function will initialize small memory management algorithm.
167167
*
168168
* @param m the small memory management object.
169-
*
169+
*
170170
* @param name is the name of the small memory management object.
171171
*
172172
* @param begin_addr the beginning address of memory.
173173
*
174174
* @param size is the size of the memory.
175-
*
175+
*
176176
* @return Return a pointer to the memory object. When the return value is RT_NULL, it means the init failed.
177177
*/
178178
rt_smem_t rt_smem_init(const char *name,
@@ -271,7 +271,7 @@ RTM_EXPORT(rt_smem_detach);
271271
* @brief Allocate a block of memory with a minimum of 'size' bytes.
272272
*
273273
* @param m the small memory management object.
274-
*
274+
*
275275
* @param size is the minimum size of the requested block in bytes.
276276
*
277277
* @return the pointer to allocated memory or NULL if no free memory was found.
@@ -408,7 +408,7 @@ RTM_EXPORT(rt_smem_alloc);
408408
* @brief This function will change the size of previously allocated memory block.
409409
*
410410
* @param m the small memory management object.
411-
*
411+
*
412412
* @param rmem is the pointer to memory allocated by rt_mem_alloc.
413413
*
414414
* @param newsize is the required new size.

src/memheap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ RTM_EXPORT(rt_memheap_free);
724724
*
725725
* @param heap is a pointer to the memheap object, which will reallocate
726726
* memory from the block
727-
*
727+
*
728728
* @param total is a pointer to get the total size of the memory.
729729
*
730730
* @param used is a pointer to get the size of memory used.

src/slab.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ struct rt_slab_memusage
169169
rt_uint32_t size: 30; /**< pages allocated or offset from zone */
170170
};
171171

172-
/*
172+
/*
173173
* slab page allocator
174174
*/
175175
struct rt_slab_page
@@ -205,7 +205,7 @@ struct rt_slab
205205
* @brief Alloc memory size by page.
206206
*
207207
* @param slab the slab memory management object.
208-
*
208+
*
209209
* @param npages the number of pages.
210210
*/
211211
void *rt_slab_page_alloc(rt_slab_t m, rt_size_t npages)
@@ -244,7 +244,7 @@ void *rt_slab_page_alloc(rt_slab_t m, rt_size_t npages)
244244
* @brief Free memory by page.
245245
*
246246
* @param slab the slab memory management object.
247-
*
247+
*
248248
* @param addr is the head address of first page.
249249
*
250250
* @param npages is the number of pages.
@@ -309,13 +309,13 @@ static void rt_slab_page_init(struct rt_slab *slab, void *addr, rt_size_t npages
309309
* @brief This function will init slab memory management algorithm
310310
*
311311
* @param slab the slab memory management object.
312-
*
312+
*
313313
* @param name is the name of the slab memory management object.
314-
*
314+
*
315315
* @param begin_addr the beginning address of system page.
316316
*
317317
* @param size is the size of the memory.
318-
*
318+
*
319319
* @return Return a pointer to the slab memory object.
320320
*/
321321
rt_slab_t rt_slab_init(const char *name, void *begin_addr, rt_size_t size)
@@ -479,7 +479,7 @@ rt_inline int zoneindex(rt_size_t *bytes)
479479
* - there is no nbytes sized memory valid in system.
480480
*
481481
* @param m the slab memory management object.
482-
*
482+
*
483483
* @param size is the size of memory to be allocated.
484484
*
485485
* @return the allocated memory.
@@ -657,7 +657,7 @@ RTM_EXPORT(rt_slab_alloc);
657657
* @brief This function will change the size of previously allocated memory block.
658658
*
659659
* @param m the slab memory management object.
660-
*
660+
*
661661
* @param ptr is the previously allocated memory block.
662662
*
663663
* @param size is the new size of memory block.

0 commit comments

Comments
 (0)