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

Function rt_ringbuffer_destroy

components/drivers/ipc/ringbuffer.c:457–463  ·  view source on GitHub ↗

* @brief Destroy the ring buffer object, which is created by rt_ringbuffer_create() . * * @param rb A pointer to the ring buffer object. */

Source from the content-addressed store, hash-verified

455 * @param rb A pointer to the ring buffer object.
456 */
457void rt_ringbuffer_destroy(struct rt_ringbuffer *rb)
458{
459 RT_ASSERT(rb != RT_NULL);
460
461 rt_free(rb->buffer_ptr);
462 rt_free(rb);
463}
464RTM_EXPORT(rt_ringbuffer_destroy);
465
466#endif

Callers 8

rt_inputcapture_closeFunction · 0.85
pipe_fops_closeFunction · 0.85
rt_pipe_closeFunction · 0.85
rt_pipe_deleteFunction · 0.85
ulog_deinitFunction · 0.85
at_cli_deinitFunction · 0.85
client_cli_parserFunction · 0.85
ringbuffer_sampleFunction · 0.85

Calls 1

rt_freeFunction · 0.85

Tested by 1

ringbuffer_sampleFunction · 0.68