Changeset 7cfe5c0 in mainline for uspace/srv/devman/devman.c
- Timestamp:
- 2012-08-20T19:16:24Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6b99156
- Parents:
- b9cb911 (diff), 01e397ac (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
rb9cb911 r7cfe5c0 1076 1076 } 1077 1077 1078 1079 1078 /** Find the device node structure of the device witch has the specified handle. 1080 1079 * … … 1163 1162 fun->state = FUN_INIT; 1164 1163 atomic_set(&fun->refcnt, 0); 1164 fibril_mutex_initialize(&fun->busy_lock); 1165 1165 link_initialize(&fun->dev_functions); 1166 1166 list_initialize(&fun->match_ids.ids); … … 1203 1203 if (atomic_predec(&fun->refcnt) == 0) 1204 1204 delete_fun_node(fun); 1205 } 1206 1207 /** Make function busy for reconfiguration operations. */ 1208 void fun_busy_lock(fun_node_t *fun) 1209 { 1210 fibril_mutex_lock(&fun->busy_lock); 1211 } 1212 1213 /** Mark end of reconfiguration operation. */ 1214 void fun_busy_unlock(fun_node_t *fun) 1215 { 1216 fibril_mutex_unlock(&fun->busy_lock); 1205 1217 } 1206 1218
Note:
See TracChangeset
for help on using the changeset viewer.