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
abe2e064
Commit
abe2e064
authored
Sep 25, 2002
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add disk device class
parent
cd585d2f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
drivers/block/genhd.c
drivers/block/genhd.c
+8
-0
include/linux/genhd.h
include/linux/genhd.h
+2
-0
No files found.
drivers/block/genhd.c
View file @
abe2e064
...
...
@@ -209,6 +209,10 @@ extern int soc_probe(void);
extern
int
atmdev_init
(
void
);
extern
int
cpqarray_init
(
void
);
struct
device_class
disk_devclass
=
{
.
name
=
"disk"
,
};
int
__init
device_init
(
void
)
{
int
i
;
...
...
@@ -226,7 +230,11 @@ int __init device_init(void)
#ifdef CONFIG_ATM
(
void
)
atmdev_init
();
#endif
devclass_register
(
&
disk_devclass
);
return
0
;
}
__initcall
(
device_init
);
EXPORT_SYMBOL
(
disk_devclass
);
include/linux/genhd.h
View file @
abe2e064
...
...
@@ -109,6 +109,8 @@ static inline void set_capacity(struct gendisk *disk, sector_t size)
disk
->
capacity
=
size
;
}
extern
struct
device_class
disk_devclass
;
#endif
/* __KERNEL__ */
#ifdef CONFIG_SOLARIS_X86_PARTITION
...
...
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