Changeset 10a5479d in mainline for uspace/srv/net
- Timestamp:
- 2012-01-22T14:18:38Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 49ec568, fcae007
- Parents:
- eb2efc7
- File:
-
- 1 edited
-
uspace/srv/net/net/net.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/net/net.c
reb2efc7 r10a5479d 56 56 #include <adt/measured_strings.h> 57 57 #include <adt/module_map.h> 58 #include <fibril_synch.h> 58 59 #include <loc.h> 59 60 #include <nic.h> … … 76 77 DEVICE_MAP_IMPLEMENT(netifs, netif_t); 77 78 LIST_INITIALIZE(netif_list); 79 80 static FIBRIL_MUTEX_INITIALIZE(discovery_lock); 78 81 79 82 /** Add the configured setting to the configuration map. … … 294 297 printf("%s: Initializing device '%s'\n", NAME, netif->name); 295 298 296 link_initialize(&netif->netif_list);297 298 299 netif->sid = sid; 299 300 netif->sess = loc_service_connect(EXCHANGE_SERIALIZE, netif->sid, … … 535 536 int rc; 536 537 538 fibril_mutex_lock(&discovery_lock); 539 537 540 rc = loc_category_get_id(DEVICE_CATEGORY_NIC, &nic_cat, IPC_FLAG_BLOCKING); 538 541 if (rc != EOK) { … … 569 572 570 573 free(svcs); 574 fibril_mutex_unlock(&discovery_lock); 571 575 return EOK; 572 576 }
Note:
See TracChangeset
for help on using the changeset viewer.
