Changeset 2edcb63 in mainline
- Timestamp:
- 2010-11-30T15:16:05Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 398c4d7
- Parents:
- 703d19c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/devman.c
r703d19c r2edcb63 540 540 541 541 /* 542 * We remove the device from the list to allow safe adding 543 * of new devices (no one will touch our item this way). 544 */ 545 list_remove(link); 546 547 /* 542 548 * Unlock to avoid deadlock when adding device 543 549 * handled by itself. … … 552 558 */ 553 559 fibril_mutex_lock(&driver->driver_mutex); 560 561 /* 562 * Insert the device back. 563 * The order is not relevant here so no harm is done 564 * (actually, the order would be preserved in most cases). 565 */ 566 list_append(link, &driver->devices); 554 567 555 568 /* … … 1133 1146 while (link != &class_list->classes) { 1134 1147 cl = list_get_instance(link, dev_class_t, link); 1135 if (str_cmp(cl->name, class_name) == 0) 1148 if (str_cmp(cl->name, class_name) == 0) { 1136 1149 return cl; 1150 } 1151 link = link->next; 1137 1152 } 1138 1153
Note:
See TracChangeset
for help on using the changeset viewer.