I have that now, but I'm not really sure how to synchronize the user space 
application with the driver, since the driver has of course only a limited 
buffer. Practically now I have a 512 sample buffer in the driver that I use 
as a double buffer and I copy blocks of 256 to the user on read. 
Isn't there a way to have a FIFO between driver and user application and is 
there an example somewhere, where I can see how this is done properly ?

Independently of that, if the user space application dies, how can I remove 
the driver then ?

Thank you,

Thomas


On Sunday 07 May 2006 22:21, Bernhard Walle wrote:
> Hi Thomas,
>
> Thomas Witzel <[EMAIL PROTECTED]> [2006-05-07]:
> > > Generally spoken, mmap can make sense if you have a significant amount
> > > of data to transfer, not "just" a few kbyte/s. RTDM has the elementary
> > > support for such device interfaces now, and this has already been used
> > > for a frame-grabbing driver.
> >
> > What would be the proper procedure for just a few kbytes ? I expect less
> > than 500 kB./second in my application.
>
> Simply read() / write() ?
>
>
> Regards,
>   Bernhard

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to