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
4df914aa
Commit
4df914aa
authored
May 29, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://kernel.bkbits.net/gregkh/linux/linus-2.5
into penguin.transmeta.com:/home/torvalds/v2.5/linux
parents
0bfd72a7
f62b69ad
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
drivers/char/tty_io.c
drivers/char/tty_io.c
+1
-1
fs/char_dev.c
fs/char_dev.c
+2
-2
include/linux/fs.h
include/linux/fs.h
+1
-1
No files found.
drivers/char/tty_io.c
View file @
4df914aa
...
...
@@ -2241,7 +2241,7 @@ int tty_register_driver(struct tty_driver *driver)
return
0
;
if
(
!
driver
->
major
)
{
error
=
alloc_chrdev_region
(
&
dev
,
driver
->
num
,
error
=
alloc_chrdev_region
(
&
dev
,
driver
->
minor_start
,
driver
->
num
,
(
char
*
)
driver
->
name
);
if
(
!
error
)
{
driver
->
major
=
MAJOR
(
dev
);
...
...
fs/char_dev.c
View file @
4df914aa
...
...
@@ -179,10 +179,10 @@ int register_chrdev_region(dev_t from, unsigned count, char *name)
return
PTR_ERR
(
cd
);
}
int
alloc_chrdev_region
(
dev_t
*
dev
,
unsigned
count
,
char
*
name
)
int
alloc_chrdev_region
(
dev_t
*
dev
,
unsigned
baseminor
,
unsigned
count
,
char
*
name
)
{
struct
char_device_struct
*
cd
;
cd
=
__register_chrdev_region
(
0
,
0
,
count
,
name
);
cd
=
__register_chrdev_region
(
0
,
baseminor
,
count
,
name
);
if
(
IS_ERR
(
cd
))
return
PTR_ERR
(
cd
);
*
dev
=
MKDEV
(
cd
->
major
,
cd
->
baseminor
);
...
...
include/linux/fs.h
View file @
4df914aa
...
...
@@ -1059,7 +1059,7 @@ extern void bd_release(struct block_device *);
extern
void
blk_run_queues
(
void
);
/* fs/char_dev.c */
extern
int
alloc_chrdev_region
(
dev_t
*
,
unsigned
,
char
*
);
extern
int
alloc_chrdev_region
(
dev_t
*
,
unsigned
,
unsigned
,
char
*
);
extern
int
register_chrdev_region
(
dev_t
,
unsigned
,
char
*
);
extern
int
register_chrdev
(
unsigned
int
,
const
char
*
,
struct
file_operations
*
);
...
...
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