device_manager: add find_child_node

to find a node in the hierarchy.

Change-Id: Iee858f21ce134569bf25fccbef9fe18ea8787e9d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2419
Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
Jérôme Duval
2020-04-10 11:25:39 +00:00
parent f4fce2fd2e
commit 08bc0cc9ca
2 changed files with 52 additions and 0 deletions
+4
View File
@@ -101,6 +101,10 @@ typedef struct device_manager_info {
const void **_data, size_t *_size, bool recursive);
status_t (*get_next_attr)(device_node *node, device_attr **_attr);
status_t (*find_child_node)(device_node *parent,
const device_attr *attrs, device_node **node);
} device_manager_info;