lkml.org 
[lkml]   [2004]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: PATCH: tty locking for 2.6.9rc2
On Wed, Sep 15, 2004 at 11:26:35AM -0500, Paul Fulghum wrote:
> I tried this patch and can't change line disciplines.
> The user program waits forever on ioctl(TIOCSETD).
> I am going to add printk statements to

Is the tty currently in use - that implies maybe an ldisc leak

> Each line discipline has a refcount.
> This single refcount is modified by all
> entities using that line discipline.

Nope. tty->ldisc is a -copy- of the ldisc structure rather than a
pointer. It has always been that way

struct tty_struct {
int magic;
struct tty_driver *driver;
int index;
struct tty_ldisc ldisc;

...


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:06    [W:0.043 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site