On Sun, Aug 3, 2014 at 1:41 PM, Lars-Peter Clausen <lars@xxxxxxxxxx> wrote: > On 08/02/2014 06:57 PM, Jonathan Cameron wrote: > [...] > >>> So, even after opening iio device node, >>> can we write the data to IIO device node from user space ? >>> (I do not see write function in below fileops) >> >> >> Indeed. Lars was working on some buffered support for DACs but hasn't >> yet submitted it for mainline inclusion. Lars how is the buffered output >> stuff coming along? > > > I still need to do the re-write you wanted me to do, otherwise its working > fine ;) > Great :) So, it is possible to write data to iio fd ? char *data; int nbytes = 24; int res = write(iio_fd, data, nbytes); This will work fine ? If yes, can you please help to tell where is write function defined ? I could find only read function here static const struct file_operations iio_event_chrdev_fileops = { .read = iio_event_chrdev_read, .poll = iio_event_poll, .release = iio_event_chrdev_release, .owner = THIS_MODULE, .llseek = noop_llseek, } > - Lars > Thanks, Aniroop -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html