|
RTEMS CPU Kit with SuperCore
4.11.2
|
#include <stdlib.h>#include <drvmgr/drvmgr.h>#include <drvmgr/drvmgr_list.h>#include "drvmgr_internal.h"
Functions | |
| int | drvmgr_children_unregister (struct drvmgr_bus *bus) |
| Unregister all child devices of a bus. More... | |
| int | drvmgr_bus_unregister (struct drvmgr_bus *bus) |
| Unregister a bus. | |
| int | drvmgr_dev_drv_separate (struct drvmgr_dev *dev) |
| int | drvmgr_dev_unregister (struct drvmgr_dev *dev) |
| Remove a device, and all its children devices if device is a bus device. More... | |
| int drvmgr_children_unregister | ( | struct drvmgr_bus * | bus | ) |
Unregister all child devices of a bus.
This function is called from the bus driver, from a "safe" state where devices will not be added or removed on this particular bus at this time
| int drvmgr_dev_unregister | ( | struct drvmgr_dev * | dev | ) |
Remove a device, and all its children devices if device is a bus device.
The device driver will be requested to remove the device and once gone from bus, device and driver list the device is put into a inactive list for debugging (this is optional by using remove argument).
Removing the Root Bus Device is not supported.
| remove | If non-zero the device will be deallocated, and not put into the inacitve list. |
1.8.13