This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

Function rc_ringbuf_free

Function Documentation

int rc_ringbuf_free(rc_ringbuf_t *buf)

Frees the memory allocated for buffer buf.

Also set the initialized flag to 0 so other functions don’t try to access unallocated memory.

Parameters

buf – Pointer to user’s buffer

Returns

Returns 0 on success or -1 on failure.