Changeset bc38578 in mainline for uspace/srv/ethip/ethip_nic.c
- Timestamp:
- 2012-02-06T16:12:58Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ceba4bed
- Parents:
- 06295a9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/ethip/ethip_nic.c
r06295a9 rbc38578 35 35 */ 36 36 37 #include <adt/list.h> 37 38 #include <async.h> 38 39 #include <bool.h> … … 256 257 } 257 258 259 ethip_nic_t *ethip_nic_find_by_iplink_sid(service_id_t iplink_sid) 260 { 261 log_msg(LVL_DEBUG, "ethip_nic_find_by_iplink_sid(%u)", 262 (unsigned) iplink_sid); 263 264 list_foreach(ethip_nic_list, link) { 265 log_msg(LVL_DEBUG, "ethip_nic_find_by_iplink_sid - element"); 266 ethip_nic_t *nic = list_get_instance(link, ethip_nic_t, 267 nic_list); 268 269 if (nic->iplink_sid == iplink_sid) { 270 log_msg(LVL_DEBUG, "ethip_nic_find_by_iplink_sid - found %p", nic); 271 return nic; 272 } 273 } 274 275 log_msg(LVL_DEBUG, "ethip_nic_find_by_iplink_sid - not found"); 276 return NULL; 277 } 278 258 279 /** @} 259 280 */
Note:
See TracChangeset
for help on using the changeset viewer.