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
eef4e251
Commit
eef4e251
authored
Jan 13, 2003
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
driver model: update documentation.
From Art Haas.
parent
9552d6bc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
22 deletions
+22
-22
Documentation/driver-model/bus.txt
Documentation/driver-model/bus.txt
+2
-2
Documentation/driver-model/driver.txt
Documentation/driver-model/driver.txt
+16
-16
Documentation/driver-model/overview.txt
Documentation/driver-model/overview.txt
+2
-2
Documentation/filesystems/sysfs.txt
Documentation/filesystems/sysfs.txt
+2
-2
No files found.
Documentation/driver-model/bus.txt
View file @
eef4e251
...
...
@@ -32,8 +32,8 @@ object of this type. They must initialize the name field, and may
optionally initialize the match callback.
struct bus_type pci_bus_type = {
name:
"pci",
match:
pci_bus_match,
.name =
"pci",
.match =
pci_bus_match,
};
The structure should be exported to drivers in a header file:
...
...
Documentation/driver-model/driver.txt
View file @
eef4e251
...
...
@@ -49,14 +49,14 @@ driver. This declaration is hypothetical only; it relies on the driver
being converted completely to the new model.
static struct device_driver eepro100_driver = {
name:
"eepro100",
bus:
&pci_bus_type,
devclass:
ðernet_devclass, /* when it's implemented */
.name =
"eepro100",
.bus =
&pci_bus_type,
.devclass =
ðernet_devclass, /* when it's implemented */
probe:
eepro100_probe,
remove:
eepro100_remove,
suspend:
eepro100_suspend,
resume:
eepro100_resume,
.probe =
eepro100_probe,
.remove =
eepro100_remove,
.suspend =
eepro100_suspend,
.resume =
eepro100_resume,
};
Most drivers will not be able to be converted completely to the new
...
...
@@ -81,15 +81,15 @@ A definition that included bus-specific fields would look something
like (using the eepro100 driver again):
static struct pci_driver eepro100_driver = {
id_table:
eepro100_pci_tbl,
driver:
{
name:
"eepro100",
bus:
&pci_bus_type,
devclass:
ðernet_devclass, /* when it's implemented */
probe:
eepro100_probe,
remove:
eepro100_remove,
suspend:
eepro100_suspend,
resume:
eepro100_resume,
.id_table =
eepro100_pci_tbl,
.driver =
{
.name =
"eepro100",
.bus =
&pci_bus_type,
.devclass =
ðernet_devclass, /* when it's implemented */
.probe =
eepro100_probe,
.remove =
eepro100_remove,
.suspend =
eepro100_suspend,
.resume =
eepro100_resume,
},
};
...
...
Documentation/driver-model/overview.txt
View file @
eef4e251
...
...
@@ -86,11 +86,11 @@ whole sysfs filesystem anywhere in userspace.
This can be done permanently by providing the following entry into the
/etc/fstab (under the provision that the mount point does exist, of course):
none /
device
s sysfs defaults 0 0
none /
sy
s sysfs defaults 0 0
Or by hand on the command line:
~: mount -t sysfs none
/devices
# mount -t sysfs sysfs
/devices
Whenever a device is inserted into the tree, a directory is created for it.
This directory may be populated at each layer of discovery - the global layer,
...
...
Documentation/filesystems/sysfs.txt
View file @
eef4e251
...
...
@@ -271,8 +271,8 @@ for devices on that particular bus (this assmumes that drivers do not
span multiple bus types).
More information can d
evice
-model specific features can be found in
Documentation/d
evice
-model/.
More information can d
river
-model specific features can be found in
Documentation/d
river
-model/.
TODO: Finish this section.
...
...
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