Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108312557
D48410.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1005 B
Referenced Files
None
Subscribers
None
D48410.diff
View Options
diff --git a/stand/kshim/bsd_kernel.h b/stand/kshim/bsd_kernel.h
--- a/stand/kshim/bsd_kernel.h
+++ b/stand/kshim/bsd_kernel.h
@@ -650,6 +650,7 @@
struct resource **);
struct resource *bus_alloc_resource_any(device_t, int, int *, unsigned int);
void bus_attach_children(device_t);
+int bus_detach_children(device_t);
bus_space_tag_t rman_get_bustag(struct resource *);
bus_space_handle_t rman_get_bushandle(struct resource *);
u_long rman_get_size(struct resource *);
diff --git a/stand/kshim/bsd_kernel.c b/stand/kshim/bsd_kernel.c
--- a/stand/kshim/bsd_kernel.c
+++ b/stand/kshim/bsd_kernel.c
@@ -664,7 +664,7 @@
}
int
-bus_generic_detach(device_t dev)
+bus_detach_children(device_t dev)
{
device_t child;
int error;
@@ -679,6 +679,17 @@
return (0);
}
+int
+bus_generic_detach(device_t dev)
+{
+ int error;
+
+ error = bus_detach_children(dev);
+ if (error == 0)
+ error = device_delete_children(dev);
+ return (error);
+}
+
const char *
device_get_nameunit(device_t dev)
{
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 24, 6:56 PM (20 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15749557
Default Alt Text
D48410.diff (1005 B)
Attached To
Mode
D48410: stand/kshim: Implement bus_detach_children
Attached
Detach File
Event Timeline
Log In to Comment