diff options
| author | David Brownell <david-b@pacbell.net> | 2002-08-30 00:52:18 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@kroah.com> | 2002-08-30 00:52:18 -0700 |
| commit | 1e31bbe1d611c07241b1ff4f59b05855701db68a (patch) | |
| tree | 8d987ab17b5c14b93322624ff3e3f814f86ae2f1 /include/linux | |
| parent | 5af6291a1a43d4068dcac1dbe610fea62fa901a0 (diff) | |
[PATCH] show pci_pool stats in driverfs]
This patch exposes basic allocation statistics for pci pools,
very much like /proc/slabinfo but applying to DMA-consistent
memory. A file "pools" is created in the driverfs directory
for the relevant pci device when the first pool is created, and
removed when the last pool is destroyed.
Please merge to 2.5.latest. If it matters, DaveM said it
looks fine. It produces sane output for all the 2.5.30
USB host controller drivers.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/pci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 38acf24cda23..8ee2d9cf4053 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -359,6 +359,7 @@ struct pci_dev { 0xffffffff. You only need to change this if your device has broken DMA or supports 64-bit transfers. */ + struct list_head pools; /* pci_pools tied to this device */ u32 current_state; /* Current operating state. In ACPI-speak, this is D0-D3, D0 being fully functional, |
