Changeset ea186c6 in mainline for uspace/srv/devman/devman.c
- Timestamp:
- 2011-08-18T20:27:26Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 921b84f
- Parents:
- 1f44b056 (diff), ef7052ec (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/devman.c
r1f44b056 rea186c6 1100 1100 } 1101 1101 1102 /** Remove function from device tree. 1103 * 1104 * @param tree Device tree 1105 * @param node Function node to remove 1106 */ 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 1102 1122 /** Find function node with a specified path in the device tree. 1103 1123 *
Note:
See TracChangeset
for help on using the changeset viewer.