Changeset fa101c4 in mainline for uspace/lib/c/generic/inetcfg.c
- Timestamp:
- 2012-03-08T22:30:19Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 637a3b4
- Parents:
- 291c792
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/inetcfg.c
r291c792 rfa101c4 205 205 } 206 206 207 int inetcfg_addr_get_id(const char *name, sysarg_t link_id, sysarg_t *addr_id) 208 { 209 async_exch_t *exch = async_exchange_begin(inetcfg_sess); 210 211 ipc_call_t answer; 212 aid_t req = async_send_1(exch, INETCFG_ADDR_GET_ID, link_id, &answer); 213 sysarg_t retval = async_data_write_start(exch, name, str_size(name)); 214 215 async_exchange_end(exch); 216 217 if (retval != EOK) { 218 async_wait_for(req, NULL); 219 return retval; 220 } 221 222 async_wait_for(req, &retval); 223 *addr_id = IPC_GET_ARG1(answer); 224 225 return retval; 226 } 227 207 228 int inetcfg_get_addr_list(sysarg_t **addrs, size_t *count) 208 229 {
Note:
See TracChangeset
for help on using the changeset viewer.