diff options
| author | Andrew Morton <akpm@digeo.com> | 2003-02-18 05:29:10 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-02-18 05:29:10 -0800 |
| commit | 7f1707cab227635e3bf400e19e25ef217dc28042 (patch) | |
| tree | 484572cc98f03998949988880a4ffa125dacbb3e /include/linux | |
| parent | f5e31c2fd615aec21d8bfcb1b17938a6c7024355 (diff) | |
[PATCH] TTY module refcounting fix
Patch from Max Krasnyansky <maxk@qualcomm.com>
This changeset adds module refcounting for TTY line disciplines. I've sent
the patch to LKM earlier. No negative comments (actually most people didn't
seem to care). This is needed at least for Bluetooth and IrDA (Jean is ok
with the patch).
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/tty_ldisc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/tty_ldisc.h b/include/linux/tty_ldisc.h index ed2029741982..ac8ac46845ba 100644 --- a/include/linux/tty_ldisc.h +++ b/include/linux/tty_ldisc.h @@ -105,6 +105,7 @@ struct tty_ldisc { char *name; int num; int flags; + /* * The following routines are called from above. */ @@ -129,6 +130,8 @@ struct tty_ldisc { char *fp, int count); int (*receive_room)(struct tty_struct *); void (*write_wakeup)(struct tty_struct *); + + struct module *owner; }; #define TTY_LDISC_MAGIC 0x5403 |
