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
nexedi
linux
Commits
b47f67f7
Commit
b47f67f7
authored
Apr 01, 2003
by
Rusty Russell
Committed by
Linus Torvalds
Apr 01, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] tty_io tty_driver add .owner field
From: Hanna Linder <hannal@us.ibm.com>
parent
953a6ce6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
drivers/char/tty_io.c
drivers/char/tty_io.c
+4
-0
No files found.
drivers/char/tty_io.c
View file @
b47f67f7
...
@@ -2246,6 +2246,7 @@ void __init tty_init(void)
...
@@ -2246,6 +2246,7 @@ void __init tty_init(void)
*/
*/
memset
(
&
dev_tty_driver
,
0
,
sizeof
(
struct
tty_driver
));
memset
(
&
dev_tty_driver
,
0
,
sizeof
(
struct
tty_driver
));
dev_tty_driver
.
magic
=
TTY_DRIVER_MAGIC
;
dev_tty_driver
.
magic
=
TTY_DRIVER_MAGIC
;
dev_tty_driver
.
owner
=
THIS_MODULE
;
dev_tty_driver
.
driver_name
=
"/dev/tty"
;
dev_tty_driver
.
driver_name
=
"/dev/tty"
;
dev_tty_driver
.
name
=
dev_tty_driver
.
driver_name
+
5
;
dev_tty_driver
.
name
=
dev_tty_driver
.
driver_name
+
5
;
dev_tty_driver
.
name_base
=
0
;
dev_tty_driver
.
name_base
=
0
;
...
@@ -2259,6 +2260,7 @@ void __init tty_init(void)
...
@@ -2259,6 +2260,7 @@ void __init tty_init(void)
panic
(
"Couldn't register /dev/tty driver
\n
"
);
panic
(
"Couldn't register /dev/tty driver
\n
"
);
dev_syscons_driver
=
dev_tty_driver
;
dev_syscons_driver
=
dev_tty_driver
;
dev_syscons_driver
.
owner
=
THIS_MODULE
;
dev_syscons_driver
.
driver_name
=
"/dev/console"
;
dev_syscons_driver
.
driver_name
=
"/dev/console"
;
dev_syscons_driver
.
name
=
dev_syscons_driver
.
driver_name
+
5
;
dev_syscons_driver
.
name
=
dev_syscons_driver
.
driver_name
+
5
;
dev_syscons_driver
.
major
=
TTYAUX_MAJOR
;
dev_syscons_driver
.
major
=
TTYAUX_MAJOR
;
...
@@ -2271,6 +2273,7 @@ void __init tty_init(void)
...
@@ -2271,6 +2273,7 @@ void __init tty_init(void)
#ifdef CONFIG_UNIX98_PTYS
#ifdef CONFIG_UNIX98_PTYS
dev_ptmx_driver
=
dev_tty_driver
;
dev_ptmx_driver
=
dev_tty_driver
;
dev_ptmx_driver
.
owner
=
THIS_MODULE
;
dev_ptmx_driver
.
driver_name
=
"/dev/ptmx"
;
dev_ptmx_driver
.
driver_name
=
"/dev/ptmx"
;
dev_ptmx_driver
.
name
=
dev_ptmx_driver
.
driver_name
+
5
;
dev_ptmx_driver
.
name
=
dev_ptmx_driver
.
driver_name
+
5
;
dev_ptmx_driver
.
major
=
TTYAUX_MAJOR
;
dev_ptmx_driver
.
major
=
TTYAUX_MAJOR
;
...
@@ -2284,6 +2287,7 @@ void __init tty_init(void)
...
@@ -2284,6 +2287,7 @@ void __init tty_init(void)
#ifdef CONFIG_VT
#ifdef CONFIG_VT
dev_console_driver
=
dev_tty_driver
;
dev_console_driver
=
dev_tty_driver
;
dev_console_driver
.
owner
=
THIS_MODULE
;
dev_console_driver
.
driver_name
=
"/dev/vc/0"
;
dev_console_driver
.
driver_name
=
"/dev/vc/0"
;
dev_console_driver
.
name
=
dev_console_driver
.
driver_name
+
5
;
dev_console_driver
.
name
=
dev_console_driver
.
driver_name
+
5
;
dev_console_driver
.
major
=
TTY_MAJOR
;
dev_console_driver
.
major
=
TTY_MAJOR
;
...
...
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