On Fri, May 13, 2016 at 06:06:48PM +0300, Pavel Emelyanov wrote: > > > > Could you please write in pseudocode which exactly you would like to see here? > > . > > > > Sure. Put tty_data collect at the very end and > > collect_tty_data(data) > { > tty_info = find_tty_info(data->id); > tty_info->data = data; > } OK