Re: notification of availability?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux