From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Sergey Lapin <slapin@ossfans.org>
Cc: "David S. Miller" <davem@davemloft.net>,
linux-kernel@vger.kernel.org, linux-x25@vger.kernel.org
Subject: Re: [PATCH 2/2] lapb-nl: Added driver
Date: Fri, 1 Jun 2012 15:54:46 +0100 [thread overview]
Message-ID: <20120601155446.51751e61@pyramind.ukuu.org.uk> (raw)
In-Reply-To: <20120601144040.GA24774@build.ihdev.net>
On the socket family side I was thinking not of a "lapb-nl" socket layer
but a simple pure LAPB socket - that just uses interface name type
addressing and only supported SOCK_RAW for raw data frames over LAPB
encodings.
> > Again the sl->tty locking needs sorting (I think this may well be true of
> > slip and the others too)
>
> Could you please explain a bit more on this?
In modern kernels the tty object is refcounted and not locked by any big
global locks.
So in your open do
tty = tty_kref_get(tty);
and in the close
tty_kref_put(tty);
and you are guaranteed the tty won't vanish under you between those
points.
> > Why flush ?
> Problems occured a long time ago, will remove and check.
That should be handled by the core code now.
> The whole thing is data packat transfer. Application is also notified when
> packet is delivered. That's it, no fancy stuff. There is also UDP code, but it is
> weird mess, and I think if it is to live or be removed. What do you think?
Weird mess removal is always good stuff.
Alan
next prev parent reply other threads:[~2012-06-01 14:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-31 15:31 [PATCH 1/2] LAPB: added 'delivered' interface Sergey Lapin
2012-05-31 15:31 ` [PATCH 2/2] lapb-nl: Added driver Sergey Lapin
2012-06-01 13:52 ` Alan Cox
2012-06-01 14:40 ` Sergey Lapin
2012-06-01 14:54 ` Alan Cox [this message]
2012-06-01 12:28 ` [PATCH 1/2] LAPB: added 'delivered' interface Alan Cox
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=20120601155446.51751e61@pyramind.ukuu.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-x25@vger.kernel.org \
--cc=slapin@ossfans.org \
/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®