Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19734
b: refs/heads/master
c: 3ec9c59
h: refs/heads/master
v: v3
  • Loading branch information
Andrey Panin authored and Russell King committed Feb 2, 2006
1 parent ba87fc4 commit fd637fa
Show file tree
Hide file tree
Showing 249 changed files with 2,157 additions and 6,070 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f3e39e67b9b6ad6a51d13be902e8341f13b93531
refs/heads/master: 3ec9c59449744dcc390d593a017d30671546fd9e
41 changes: 0 additions & 41 deletions trunk/Documentation/cputopology.txt

This file was deleted.

57 changes: 32 additions & 25 deletions trunk/Documentation/driver-model/overview.txt
Original file line number Diff line number Diff line change
@@ -1,43 +1,50 @@
The Linux Kernel Device Model

Patrick Mochel <mochel@digitalimplant.org>
Patrick Mochel <mochel@osdl.org>

Drafted 26 August 2002
Updated 31 January 2006
26 August 2002


Overview
~~~~~~~~

The Linux Kernel Driver Model is a unification of all the disparate driver
models that were previously used in the kernel. It is intended to augment the
This driver model is a unification of all the current, disparate driver models
that are currently in the kernel. It is intended to augment the
bus-specific drivers for bridges and devices by consolidating a set of data
and operations into globally accessible data structures.

Traditional driver models implemented some sort of tree-like structure
(sometimes just a list) for the devices they control. There wasn't any
uniformity across the different bus types.
Current driver models implement some sort of tree-like structure (sometimes
just a list) for the devices they control. But, there is no linkage between
the different bus types.

The current driver model provides a comon, uniform data model for describing
a bus and the devices that can appear under the bus. The unified bus
model includes a set of common attributes which all busses carry, and a set
of common callbacks, such as device discovery during bus probing, bus
shutdown, bus power management, etc.
A common data structure can provide this linkage with little overhead: when a
bus driver discovers a particular device, it can insert it into the global
tree as well as its local tree. In fact, the local tree becomes just a subset
of the global tree.

Common data fields can also be moved out of the local bus models into the
global model. Some of the manipulations of these fields can also be
consolidated. Most likely, manipulation functions will become a set
of helper functions, which the bus drivers wrap around to include any
bus-specific items.

The common device and bridge interface currently reflects the goals of the
modern PC: namely the ability to do seamless Plug and Play, power management,
and hot plug. (The model dictated by Intel and Microsoft (read: ACPI) ensures
us that any device in the system may fit any of these criteria.)

In reality, not every bus will be able to support such operations. But, most
buses will support a majority of those operations, and all future buses will.
In other words, a bus that doesn't support an operation is the exception,
instead of the other way around.

The common device and bridge interface reflects the goals of the modern
computer: namely the ability to do seamless device "plug and play", power
management, and hot plug. In particular, the model dictated by Intel and
Microsoft (namely ACPI) ensures that almost every device on almost any bus
on an x86-compatible system can work within this paradigm. Of course,
not every bus is able to support all such operations, although most
buses support a most of those operations.


Downstream Access
~~~~~~~~~~~~~~~~~

Common data fields have been moved out of individual bus layers into a common
data structure. These fields must still be accessed by the bus layers,
data structure. But, these fields must still be accessed by the bus layers,
and sometimes by the device-specific drivers.

Other bus layers are encouraged to do what has been done for the PCI layer.
Expand All @@ -46,7 +53,7 @@ struct pci_dev now looks like this:
struct pci_dev {
...

struct device dev;
struct device device;
};

Note first that it is statically allocated. This means only one allocation on
Expand All @@ -57,9 +64,9 @@ the two.

The PCI bus layer freely accesses the fields of struct device. It knows about
the structure of struct pci_dev, and it should know the structure of struct
device. Individual PCI device drivers that have been converted the the current
driver model generally do not and should not touch the fields of struct device,
unless there is a strong compelling reason to do so.
device. PCI devices that have been converted generally do not touch the fields
of struct device. More precisely, device-specific drivers should not touch
fields of struct device unless there is a strong compelling reason to do so.

This abstraction is prevention of unnecessary pain during transitional phases.
If the name of the field changes or is removed, then every downstream driver
Expand Down
2 changes: 0 additions & 2 deletions trunk/Documentation/filesystems/configfs/configfs_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,6 @@ static struct config_item_type simple_children_type = {
.ct_item_ops = &simple_children_item_ops,
.ct_group_ops = &simple_children_group_ops,
.ct_attrs = simple_children_attrs,
.ct_owner = THIS_MODULE,
};

static struct configfs_subsystem simple_children_subsys = {
Expand Down Expand Up @@ -404,7 +403,6 @@ static struct config_item_type group_children_type = {
.ct_item_ops = &group_children_item_ops,
.ct_group_ops = &group_children_group_ops,
.ct_attrs = group_children_attrs,
.ct_owner = THIS_MODULE,
};

static struct configfs_subsystem group_children_subsys = {
Expand Down
1 change: 0 additions & 1 deletion trunk/Documentation/filesystems/ocfs2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ Features which OCFS2 does not support yet:
be cluster coherent.
- quotas
- cluster aware flock
- cluster aware lockf
- Directory change notification (F_NOTIFY)
- Distributed Caching (F_SETLEASE/F_GETLEASE/break_lease)
- POSIX ACLs
Expand Down
17 changes: 0 additions & 17 deletions trunk/Documentation/networking/ip-sysctl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -427,23 +427,6 @@ icmp_ignore_bogus_error_responses - BOOLEAN
will avoid log file clutter.
Default: FALSE

icmp_errors_use_inbound_ifaddr - BOOLEAN

If zero, icmp error messages are sent with the primary address of
the exiting interface.

If non-zero, the message will be sent with the primary address of
the interface that received the packet that caused the icmp error.
This is the behaviour network many administrators will expect from
a router. And it can make debugging complicated network layouts
much easier.

Note that if no primary address exists for the interface selected,
then the primary address of the first non-loopback interface that
has one will be used regarldess of this setting.

Default: 0

igmp_max_memberships - INTEGER
Change the maximum number of multicast groups we can subscribe to.
Default: 20
Expand Down
8 changes: 4 additions & 4 deletions trunk/Documentation/parport-lowlevel.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ SYNOPSIS

struct parport_operations {
...
void (*write_control) (struct parport *port, unsigned char s);
void (*write_status) (struct parport *port, unsigned char s);
...
};

Expand Down Expand Up @@ -1097,9 +1097,9 @@ SYNOPSIS

struct parport_operations {
...
unsigned char (*frob_control) (struct parport *port,
unsigned char mask,
unsigned char val);
void (*frob_control) (struct parport *port,
unsigned char mask,
unsigned char val);
...
};

Expand Down
Loading

0 comments on commit fd637fa

Please sign in to comment.