skeleton ambiguity

In the driver skeleton, the function:

static int skel_ai_rinsn(comedi_device *dev,comedi_subdevice *s,comedi_insn 
*insn,lsampl_t *data)
{
	int n,i;
	unsigned int d;
	unsigned int status;

	/* a typical programming sequence */

	/* write channel to multiplexer */
	//outw(chan,dev->iobase + SKEL_MUX);

Is confusing to me.
It appears the function is expecting to sample a single channel into a buffer, 
but where is this channel "chan" specified?
I'm assuming it's encoded in the instruction somehow? But I can't find this in 
the documentation.

thx,
NZG.

Received on 2005-08-01Z17:34:10