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.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux