On Thu, Aug 24, 2006 at 02:10:59PM +0200, chris.boon@xxxxxxxxxx wrote: > Hi, > > i have a driver which is connected to an interrupt line and the > interrupts occur every 400uS. > After the interrupt a fifo is read and the data is put into a buffer > and copied to userspace. > > I used a buffer which could hold only the data of one fifo read but > the userspace application sometimes doesnt read the driver on time and > the data is overwritten. > > what can i use best to avoid this, a linked list buffer or a multi > dimensional array? A circular buffer. Use the stuff in include/linux/circ_buf.h good luck, greg k-h -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/