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

Function uma_zalloc

components/lwp/terminal/bsd_porting.h:386–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384}
385
386rt_inline void *uma_zalloc(uma_zone_t zone, int flags)
387{
388 void *buf = rt_malloc_align(zone->size, zone->align + 1);
389 if (buf)
390 rt_memset(buf, 0, sizeof(zone->size));
391 return buf;
392}
393
394rt_inline void uma_zfree(uma_zone_t zone, void *item)
395{

Callers 2

ttyoutq_setsizeFunction · 0.85
ttyinq_setsizeFunction · 0.85

Calls 2

rt_malloc_alignFunction · 0.85
rt_memsetFunction · 0.85

Tested by

no test coverage detected