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
6c95cbe9
Commit
6c95cbe9
authored
Dec 29, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TTY: add tty_devclass to the tty core.
parent
9ac2ca13
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
drivers/char/tty_io.c
drivers/char/tty_io.c
+8
-0
include/linux/tty_driver.h
include/linux/tty_driver.h
+2
-0
No files found.
drivers/char/tty_io.c
View file @
6c95cbe9
...
...
@@ -90,6 +90,7 @@
#include <linux/init.h>
#include <linux/module.h>
#include <linux/smp_lock.h>
#include <linux/device.h>
#include <asm/uaccess.h>
#include <asm/system.h>
...
...
@@ -2271,12 +2272,19 @@ static struct tty_driver dev_console_driver;
extern
int
vty_init
(
void
);
#endif
struct
device_class
tty_devclass
=
{
.
name
=
"tty"
,
};
EXPORT_SYMBOL
(
tty_devclass
);
/*
* Ok, now we can initialize the rest of the tty devices and can count
* on memory allocations, interrupts etc..
*/
void
__init
tty_init
(
void
)
{
devclass_register
(
&
tty_devclass
);
/*
* dev_tty_driver and dev_console_driver are actually magic
* devices which get redirected at open time. Nevertheless,
...
...
include/linux/tty_driver.h
View file @
6c95cbe9
...
...
@@ -227,4 +227,6 @@ extern struct list_head tty_drivers;
#define SERIAL_TYPE_NORMAL 1
#define SERIAL_TYPE_CALLOUT 2
extern
struct
device_class
tty_devclass
;
#endif
/* #ifdef _LINUX_TTY_DRIVER_H */
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