Commit 6c933c79 authored by Federico Vaga's avatar Federico Vaga Committed by Federico Vaga

config: seq_num start from 1

In output configuration, 0 will mean "do not change seq_num". Any other
value will be assigned to current_ctrl->seq_num
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
Acked-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 92f82de9
......@@ -714,6 +714,7 @@ static int chan_register(struct zio_channel *chan, struct zio_channel *chan_t)
err = -ENOMEM;
goto out_zattr_check;
}
ctrl->seq_num = 1; /* 0 has special use on output configuration */
ctrl->nsamples = chan->cset->ti->nsamples;
ctrl->nbits = __get_nbits(chan); /* may be zero */
/* ctrl->addr.family = PF_ZIO */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment