GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
DEVICE_DELETE_CHILD(9) FreeBSD Kernel Developer's Manual DEVICE_DELETE_CHILD(9)

device_delete_childdelete a child from a device

#include <sys/param.h>
#include <sys/bus.h>

int
device_delete_child(device_t dev, device_t child);

The specified device is removed from dev and deleted. If the device is currently attached, it is first detached via device_detach(9). If () fails, its error value is returned. Otherwise, all descendant devices of child are deleted and zero is returned.

The BUS_CHILD_DELETED(9) method is invoked for each device that is deleted. This permits the parent device's driver to tear down any state associated with child devices such as ivars.

Zero is returned on success, otherwise an error is returned.

BUS_CHILD_DELETED(9), device_add_child(9)

This manual page was written by Doug Rabson.

February 5, 2025 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 9 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.