mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Steffen Sledz <sledz@dresearch.de>
Cc: linux-kernel@vger.kernel.org, linux-net@vger.kernel.org,
	Mario Schuknecht <m.schuknecht@dresearch.de>,
	"Fred N. van Kempen" <waltje@uWalt.NL.Mugnet.ORG>,
	Mark Evans <evansmp@uhura.aston.ac.uk>,
	Corey Minyard <wf-rch!minyard@relay.EU.net>,
	Florian La Roche <flla@stud.uni-sb.de>,
	Charles Hedrick <hedrick@klinzhai.rutgers.edu>,
	Linus Torvalds <torvalds@cs.helsinki.fi>,
	Alan Cox <gw4pts@gw4pts.ampr.org>,
	Matthew Dillon <dillon@apollo.west.oic.com>,
	Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>,
	Jorge Cwik <jorge@laser.satlink.net>,
	Matthew Dillon <dillon@crater.dragonflybsd.org>,
	Alan Cox <alc@FreeBSD.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Charles Hedrick <hedrick@rutgers.edu>,
	"" <Fred.van.Kempen@microwalt.nl>
Subject: Re: [PATCH] tcp: ioctl type SIOCOUTQNSD returns amount of data not sent
Date: Fri, 4 Mar 2011 11:49:37 +0000	[thread overview]
Message-ID: <20110304114937.6ae1b203@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <4D64FA12.4070800@dresearch.de>

On Wed, 23 Feb 2011 13:14:10 +0100
Steffen Sledz <sledz@dresearch.de> wrote:

> Am 05.10.2010 11:32, schrieb Mario Schuknecht:
> > In contrast to SIOCOUTQ which returns the amount of data sent
> > but not yet acknowledged plus data not yet sent this patch only
> > returns the data not sent.
> > 
> > For various methods of live streaming bitrate control it may
> > be helpful to know how much data are in the tcp outqueue are
> > not sent yet.
> > 
> > Signed-off-by: Mario Schuknecht <m.schuknecht@dresearch.de>
> > ---
> >  include/asm-generic/ioctls.h |    1 +
> >  include/linux/sockios.h      |    1 +
> >  net/ipv4/tcp.c               |    9 +++++++++
> >  3 files changed, 11 insertions(+), 0 deletions(-)
> > 
> > diff --git a/include/asm-generic/ioctls.h b/include/asm-generic/ioctls.h
> > index a321665..b87115b 100644
> > --- a/include/asm-generic/ioctls.h
> > +++ b/include/asm-generic/ioctls.h
> > @@ -72,6 +72,7 @@
> >  #define TCSETXF		0x5434
> >  #define TCSETXW		0x5435
> >  #define TIOCSIG		_IOW('T', 0x36, int)  /* pty: generate signal */
> > +#define TIOCOUTQNSD	0x5437

These are tty not socket ioctl codes. For various historical reasons some
of them got sort of emulated by the socket layer in Unix and thus in
Linux.

If you plan to add one to Linux then please post the accompanying *tty
layer* patches and reasoning, otherwise if it is socket only please stick
to the socket ioctl.

Alan

      reply	other threads:[~2011-03-04 11:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-05  9:32 Mario Schuknecht
2011-02-23 12:14 ` Steffen Sledz
2011-03-04 11:49   ` Alan Cox [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110304114937.6ae1b203@lxorguk.ukuu.org.uk \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=Fred.van.Kempen@microwalt.nl \
    --cc=alc@FreeBSD.org \
    --cc=arnt@gulbrandsen.priv.no \
    --cc=dillon@apollo.west.oic.com \
    --cc=dillon@crater.dragonflybsd.org \
    --cc=evansmp@uhura.aston.ac.uk \
    --cc=flla@stud.uni-sb.de \
    --cc=gw4pts@gw4pts.ampr.org \
    --cc=hedrick@klinzhai.rutgers.edu \
    --cc=hedrick@rutgers.edu \
    --cc=jorge@laser.satlink.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-net@vger.kernel.org \
    --cc=m.schuknecht@dresearch.de \
    --cc=sledz@dresearch.de \
    --cc=torvalds@cs.helsinki.fi \
    --cc=torvalds@linux-foundation.org \
    --cc=waltje@uWalt.NL.Mugnet.ORG \
    --cc=wf-rch!minyard@relay.EU.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®