Changeset 77a69ea in mainline for uspace/srv/net/nil/nildummy/nildummy.c
- Timestamp:
- 2012-01-21T15:06:51Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ce7676c
- Parents:
- e86b8f0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/nil/nildummy/nildummy.c
re86b8f0 r77a69ea 53 53 #include <packet_remote.h> 54 54 #include <packet_client.h> 55 #include <devman.h>56 55 #include <device/nic.h> 56 #include <loc.h> 57 57 #include <nil_skel.h> 58 58 #include "nildummy.h" … … 115 115 */ 116 116 static int nildummy_device_message(nic_device_id_t device_id, 117 devman_handle_t handle, size_t mtu)117 service_id_t sid, size_t mtu) 118 118 { 119 119 fibril_rwlock_write_lock(&nildummy_globals.devices_lock); … … 123 123 nildummy_devices_find(&nildummy_globals.devices, device_id); 124 124 if (device) { 125 if (device-> handle != handle) {125 if (device->sid != sid) { 126 126 printf("Device %d exists, handles do not match\n", 127 127 device->device_id); … … 158 158 159 159 device->device_id = device_id; 160 device-> handle = handle;160 device->sid = sid; 161 161 if (mtu > 0) 162 162 device->mtu = mtu; … … 165 165 166 166 /* Bind the device driver */ 167 device->sess = devman_device_connect(EXCHANGE_SERIALIZE, handle,167 device->sess = loc_service_connect(EXCHANGE_SERIALIZE, sid, 168 168 IPC_FLAG_BLOCKING); 169 169 if (device->sess == NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.