Changeset fcae007 in mainline for uspace/srv/net/net/net.c


Ignore:
Timestamp:
2012-01-22T13:23:21Z (12 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
08cc26b
Parents:
d9bbe45 (diff), 10a5479d (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.
Message:

Merge with mainline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/net/net.c

    rd9bbe45 rfcae007  
    5656#include <adt/measured_strings.h>
    5757#include <adt/module_map.h>
     58#include <fibril_synch.h>
    5859#include <loc.h>
    5960#include <nic.h>
     
    7677DEVICE_MAP_IMPLEMENT(netifs, netif_t);
    7778LIST_INITIALIZE(netif_list);
     79
     80static FIBRIL_MUTEX_INITIALIZE(discovery_lock);
    7881
    7982/** Add the configured setting to the configuration map.
     
    294297        printf("%s: Initializing device '%s'\n", NAME, netif->name);
    295298       
    296         link_initialize(&netif->netif_list);
    297        
    298299        netif->sid = sid;
    299300        netif->sess = loc_service_connect(EXCHANGE_SERIALIZE, netif->sid,
     
    535536        int rc;
    536537
     538        fibril_mutex_lock(&discovery_lock);
     539
    537540        rc = loc_category_get_id(DEVICE_CATEGORY_NIC, &nic_cat, IPC_FLAG_BLOCKING);
    538541        if (rc != EOK) {
     
    569572
    570573        free(svcs);
     574        fibril_mutex_unlock(&discovery_lock);
    571575        return EOK;
    572576}
Note: See TracChangeset for help on using the changeset viewer.