Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107353152
D32645.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D32645.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h
--- a/sys/compat/linuxkpi/common/include/linux/pci.h
+++ b/sys/compat/linuxkpi/common/include/linux/pci.h
@@ -193,7 +193,7 @@
struct pci_dev;
struct pci_driver {
- struct list_head links;
+ struct list_head node;
char *name;
const struct pci_device_id *id_table;
int (*probe)(struct pci_dev *dev, const struct pci_device_id *id);
diff --git a/sys/compat/linuxkpi/common/src/linux_pci.c b/sys/compat/linuxkpi/common/src/linux_pci.c
--- a/sys/compat/linuxkpi/common/src/linux_pci.c
+++ b/sys/compat/linuxkpi/common/src/linux_pci.c
@@ -242,7 +242,7 @@
subdevice = pci_get_subdevice(dev);
spin_lock(&pci_lock);
- list_for_each_entry(pdrv, &pci_drivers, links) {
+ list_for_each_entry(pdrv, &pci_drivers, node) {
for (id = pdrv->id_table; id->vendor != 0; id++) {
if (vendor == id->vendor &&
(PCI_ANY_ID == id->device || device == id->device) &&
@@ -640,7 +640,7 @@
linux_set_current(curthread);
spin_lock(&pci_lock);
- list_add(&pdrv->links, &pci_drivers);
+ list_add(&pdrv->node, &pci_drivers);
spin_unlock(&pci_lock);
pdrv->bsddriver.name = pdrv->name;
pdrv->bsddriver.methods = pci_methods;
@@ -734,7 +734,7 @@
bus = devclass_find("pci");
spin_lock(&pci_lock);
- list_del(&pdrv->links);
+ list_del(&pdrv->node);
spin_unlock(&pci_lock);
mtx_lock(&Giant);
if (bus != NULL)
@@ -750,7 +750,7 @@
bus = devclass_find("vgapci");
spin_lock(&pci_lock);
- list_del(&pdrv->links);
+ list_del(&pdrv->node);
spin_unlock(&pci_lock);
mtx_lock(&Giant);
if (bus != NULL)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 13, 10:27 PM (20 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15788131
Default Alt Text
D32645.diff (1 KB)
Attached To
Mode
D32645: LinuxKPI: pci.h / linux_pci.c rename pci_driver field
Attached
Detach File
Event Timeline
Log In to Comment