Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
352cf636
Commit
352cf636
authored
Apr 23, 2003
by
Alexander Viro
Committed by
Christoph Hellwig
Apr 23, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] tty cleanups (1/12)
Christoph's fix for devfs problems with pty.
parent
8d1f37c2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
drivers/char/pty.c
drivers/char/pty.c
+1
-5
drivers/char/tty_io.c
drivers/char/tty_io.c
+2
-1
No files found.
drivers/char/pty.c
View file @
352cf636
...
@@ -95,7 +95,6 @@ static void pty_close(struct tty_struct * tty, struct file * filp)
...
@@ -95,7 +95,6 @@ static void pty_close(struct tty_struct * tty, struct file * filp)
}
}
}
}
#endif
#endif
tty_unregister_device
(
&
tty
->
link
->
driver
,
minor
(
tty
->
device
));
tty_vhangup
(
tty
->
link
);
tty_vhangup
(
tty
->
link
);
}
}
}
}
...
@@ -448,17 +447,14 @@ int __init pty_init(void)
...
@@ -448,17 +447,14 @@ int __init pty_init(void)
init_waitqueue_head
(
&
ptm_state
[
i
][
j
].
open_wait
);
init_waitqueue_head
(
&
ptm_state
[
i
][
j
].
open_wait
);
pts_driver
[
i
]
=
pty_slave_driver
;
pts_driver
[
i
]
=
pty_slave_driver
;
#ifdef CONFIG_DEVFS_FS
pts_driver
[
i
].
name
=
"pts/%d"
;
#else
pts_driver
[
i
].
name
=
"pts"
;
pts_driver
[
i
].
name
=
"pts"
;
#endif
pts_driver
[
i
].
proc_entry
=
0
;
pts_driver
[
i
].
proc_entry
=
0
;
pts_driver
[
i
].
major
=
UNIX98_PTY_SLAVE_MAJOR
+
i
;
pts_driver
[
i
].
major
=
UNIX98_PTY_SLAVE_MAJOR
+
i
;
pts_driver
[
i
].
minor_start
=
0
;
pts_driver
[
i
].
minor_start
=
0
;
pts_driver
[
i
].
name_base
=
i
*
NR_PTYS
;
pts_driver
[
i
].
name_base
=
i
*
NR_PTYS
;
pts_driver
[
i
].
num
=
ptm_driver
[
i
].
num
;
pts_driver
[
i
].
num
=
ptm_driver
[
i
].
num
;
pts_driver
[
i
].
other
=
&
ptm_driver
[
i
];
pts_driver
[
i
].
other
=
&
ptm_driver
[
i
];
pts_driver
[
i
].
flags
|=
TTY_DRIVER_NO_DEVFS
;
pts_driver
[
i
].
table
=
pts_table
[
i
];
pts_driver
[
i
].
table
=
pts_table
[
i
];
pts_driver
[
i
].
termios
=
pts_termios
[
i
];
pts_driver
[
i
].
termios
=
pts_termios
[
i
];
pts_driver
[
i
].
termios_locked
=
pts_termios_locked
[
i
];
pts_driver
[
i
].
termios_locked
=
pts_termios_locked
[
i
];
...
...
drivers/char/tty_io.c
View file @
352cf636
...
@@ -2215,6 +2215,7 @@ int tty_unregister_driver(struct tty_driver *driver)
...
@@ -2215,6 +2215,7 @@ int tty_unregister_driver(struct tty_driver *driver)
driver
->
termios_locked
[
i
]
=
NULL
;
driver
->
termios_locked
[
i
]
=
NULL
;
kfree
(
tp
);
kfree
(
tp
);
}
}
if
(
!
(
driver
->
flags
&
TTY_DRIVER_NO_DEVFS
))
tty_unregister_device
(
driver
,
driver
->
minor_start
+
i
);
tty_unregister_device
(
driver
,
driver
->
minor_start
+
i
);
}
}
proc_tty_unregister_driver
(
driver
);
proc_tty_unregister_driver
(
driver
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment