On Mon, 2 Aug 2004, Tobias DiPasquale wrote: > Does anyone know of a way to let the userspace processes know how much > data is in my driver's buffer in advance of a read(2) so that it can > avoid blocking and also exhibit the maximum transfer rate from kernel > to userspace? Thanks in advance! :) I know of no such interface, but the normal way to deal with this is to make the filedescriptor non-blocking and specify a sufficiently large buffer in the read/recvmsg to deal with the "worst case" efficiently. Regards Henrik - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html