summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-01-13 17:04:14 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-01-14 08:52:44 +0100
commit90244aef72993fb8771213f1a63b862ca8d8c695 (patch)
tree930f193ff7d65cf3419dbfe16d8f47572a393385 /include
parent3f256724b98fb3784a6caf3cff77f957d46bead9 (diff)
downloadbarebox-90244aef72993fb8771213f1a63b862ca8d8c695.tar.gz
barebox-90244aef72993fb8771213f1a63b862ca8d8c695.tar.xz
commands: add new devunbind debugging command
Memory corruption around device removal may go unnoticed, because barebox is shutting down anyway and doing no new allocations. Add a new devunbind command that should help with debugging such issues by allowing selective unbinding and removal of devices. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220113160414.3943151-3-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/driver.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/driver.h b/include/driver.h
index 4f6d40e17c..1215a2d57a 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -328,6 +328,10 @@ extern struct list_head device_list;
*/
extern struct list_head driver_list;
+/* linear list over all active devices
+ */
+extern struct list_head active_device_list;
+
/* Iterate over all devices
*/
#define for_each_device(dev) list_for_each_entry(dev, &device_list, list)