MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_device_bus_destroy

Function rt_device_bus_destroy

components/drivers/core/bus.c:75–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75rt_err_t rt_device_bus_destroy(rt_device_t dev)
76{
77 rt_device_unregister(dev);
78 dev->parent.type = RT_Object_Class_Device;
79 rt_device_destroy(dev);
80 LOG_D("bus destroy");
81 return RT_EOK;
82}
83
84#endif
85

Callers 1

dfs_device_fs_unlinkFunction · 0.85

Calls 2

rt_device_unregisterFunction · 0.85
rt_device_destroyFunction · 0.85

Tested by

no test coverage detected