xRingbufferCreate() function
Create a ring buffer
Arguments
xBufferSize
Size of the buffer in bytes. Note that items require space for a header in no-split/allow-split buffers
xBufferType
Type of ring buffer, see documentation.
Return value
A handle to the created ring buffer, or NULL in case of error.
Notes
xBufferSize of no-split/allow-split buffers will be rounded up to the nearest 32-bit aligned size.
![]()
if (((*slot)->ringbuf_write = xRingbufferCreate(spp_local_param.tx_buffer_size, RINGBUF_TYPE_BYTEBUF)) == NULL) {
xRingbufferCreate() is called by 5 functions and calls 5 functions:
![]()
xRingbufferCreate()
xRingbufferCreate() reads 2 variables:
![]()
xRingbufferCreate()
xRingbufferCreate() allocates 1 types and frees 1 types:
![]()
xRingbufferCreate()