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

Function rt_smem_setname

src/mem.c:103–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101
102#ifdef RT_USING_MEMTRACE
103rt_inline void rt_smem_setname(struct rt_small_mem_item *mem, const char *name)
104{
105 int index;
106 for (index = 0; index < sizeof(mem->thread); index ++)
107 {
108 if (name[index] == '\0') break;
109 mem->thread[index] = name[index];
110 }
111
112 for (; index < sizeof(mem->thread); index ++)
113 {
114 mem->thread[index] = ' ';
115 }
116}
117#endif /* RT_USING_MEMTRACE */
118
119static void plug_holes(struct rt_small_mem *m, struct rt_small_mem_item *mem)

Callers 4

rt_smem_initFunction · 0.85
rt_smem_allocFunction · 0.85
rt_smem_reallocFunction · 0.85
rt_smem_freeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected