struct shm_handle *handle)
{
struct channel *chan = shmp(handle, buf->backend.chan);
- const struct lib_ring_buffer_config *config = &chan->backend.config;
+ //const struct lib_ring_buffer_config *config = &chan->backend.config;
if (!chan->switch_timer_interval || buf->switch_timer_enabled)
return;
static void channel_free(struct channel *chan, struct shm_handle *handle,
int shadow)
{
- int ret;
-
if (!shadow)
channel_backend_free(&chan->backend, handle);
/* chan is freed by shm teardown */
struct shm_handle *handle,
int shadow)
{
- struct channel *chan = shmp(handle, buf->backend.chan);
-
if (shadow) {
if (uatomic_cmpxchg(&buf->active_shadow_readers, 0, 1) != 0)
return -EBUSY;