comedi_buf_write_n_allocated
unsigned int allocated = comedi_buf_write_n_allocated(s);
m = comedi_buf_write_n_allocated(s);
unsigned int comedi_buf_write_n_allocated(struct comedi_subdevice *s);