Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148064835
D15269.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
688 B
Referenced Files
None
Subscribers
None
D15269.id.diff
View Options
Index: head/sys/dev/pci/vga_pci.c
===================================================================
--- head/sys/dev/pci/vga_pci.c
+++ head/sys/dev/pci/vga_pci.c
@@ -283,6 +283,17 @@
}
static int
+vga_pci_detach(device_t dev)
+{
+ int error;
+
+ error = bus_generic_detach(dev);
+ if (error == 0)
+ error = device_delete_children(dev);
+ return (error);
+}
+
+static int
vga_pci_resume(device_t dev)
{
@@ -620,6 +631,7 @@
DEVMETHOD(device_attach, vga_pci_attach),
DEVMETHOD(device_shutdown, bus_generic_shutdown),
DEVMETHOD(device_suspend, vga_pci_suspend),
+ DEVMETHOD(device_detach, vga_pci_detach),
DEVMETHOD(device_resume, vga_pci_resume),
/* Bus interface */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 16, 12:40 PM (8 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29725597
Default Alt Text
D15269.id.diff (688 B)
Attached To
Mode
D15269: Allow PCI VGA devices to be detached.
Attached
Detach File
Event Timeline
Log In to Comment