Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
obj->memory_map = memory_map;
obj->memory_map_size = memory_map_size;
obj->allocated_len = 0;
+ obj->index = table->allocated_len++;
- table->allocated_len++;
return obj;
error_mmap:
ltt_chan->handle = channel_create(&client_config, name, ltt_chan, buf_addr,
subbuf_size, num_subbuf, switch_timer_interval,
read_timer_interval);
- ltt_chan->chan = shmp(handle, handle->chan);
+ ltt_chan->chan = shmp(ltt_chan->handle, ltt_chan->handle->chan);
return ltt_chan;
}