Re: problem in do_tcp_sendpages

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

 



From: Jamie Lokier <jamie@xxxxxxxxxxxxx>
Date: Thu, 22 Dec 2005 20:54:41 +0000

> That reminds me.  Is there a good (efficient) way to find out when
> it's freed from userspace?

One way would be to use the SIOCOUTQ ioctl on the TCP socket.
This states how many un-ACK'd (and thus unfree'd) bytes remain
in the send queue.

So, for example, let's say you did two 1K sends, and you just want to
know when the first 1K is reusable.  To do that, just wait for
SIOCOUTQ to return 1K.
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
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