Changes in uspace/srv/devman/devman.c [d0dd7b5:e280857] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/devman.c
rd0dd7b5 re280857 1100 1100 } 1101 1101 1102 /** Remove function from device tree.1103 *1104 * @param tree Device tree1105 * @param node Function node to remove1106 */1107 void remove_fun_node(dev_tree_t *tree, fun_node_t *fun)1108 {1109 assert(tree != NULL);1110 assert(fun != NULL);1111 assert(fibril_rwlock_is_write_locked(&tree->rwlock));1112 1113 /* Remove the node from the handle-to-node map. */1114 unsigned long key = fun->handle;1115 hash_table_remove(&tree->devman_functions, &key, 1);1116 1117 /* Remove the node from the list of its parent's children. */1118 if (fun->dev != NULL)1119 list_remove(&fun->dev_functions);1120 }1121 1122 1102 /** Find function node with a specified path in the device tree. 1123 1103 *
Note:
See TracChangeset
for help on using the changeset viewer.