Changeset c1a0488 in mainline for uspace/srv/devman/devman.c
- Timestamp:
- 2011-09-02T15:58:02Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e2b9b341
- Parents:
- aff587f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/devman.c
raff587f rc1a0488 846 846 add_device(drv, dev, tree); 847 847 848 fibril_mutex_lock(&drv->driver_mutex); 849 fibril_mutex_unlock(&drv->driver_mutex); 850 851 fibril_rwlock_write_lock(&tree->rwlock); 852 if (dev->pfun != NULL) { 853 dev->pfun->state = FUN_ON_LINE; 854 } 855 fibril_rwlock_write_unlock(&tree->rwlock); 848 856 return true; 849 857 } … … 1106 1114 return NULL; 1107 1115 1116 fun->state = FUN_INIT; 1108 1117 atomic_set(&fun->refcnt, 0); 1109 1118 link_initialize(&fun->dev_functions); … … 1275 1284 dev->pfun->child = NULL; 1276 1285 dev->pfun = NULL; 1286 1287 dev->state = DEVICE_REMOVED; 1277 1288 } 1278 1289 … … 1338 1349 1339 1350 fun->dev = NULL; 1351 fun->state = FUN_REMOVED; 1340 1352 } 1341 1353
Note:
See TracChangeset
for help on using the changeset viewer.