RTEMS CPU Kit with SuperCore  4.11.2
Functions
drvmgr_unregister.c File Reference
#include <stdlib.h>
#include <drvmgr/drvmgr.h>
#include <drvmgr/drvmgr_list.h>
#include "drvmgr_internal.h"
Include dependency graph for drvmgr_unregister.c:

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...
 

Function Documentation

◆ drvmgr_children_unregister()

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

◆ drvmgr_dev_unregister()

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.

Parameters
removeIf non-zero the device will be deallocated, and not put into the inacitve list.