Changes in uspace/srv/net/net/net.c [aaa3f33a:1bfd3d3] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/net/net.c
raaa3f33a r1bfd3d3 78 78 DEVICE_MAP_IMPLEMENT(netifs, netif_t); 79 79 80 static int startup(void); 81 80 82 /** Add the configured setting to the configuration map. 81 83 * … … 84 86 * @param[in] value The setting value. 85 87 * 86 * @return sEOK on success.87 * @return sENOMEM if there is not enough memory left.88 * @return EOK on success. 89 * @return ENOMEM if there is not enough memory left. 88 90 * 89 91 */ … … 110 112 /** Generate new system-unique device identifier. 111 113 * 112 * @return sThe system-unique devic identifier.114 * @return The system-unique devic identifier. 113 115 */ 114 116 static device_id_t generate_new_device_id(void) … … 235 237 * @param[in,out] netif The network interface structure. 236 238 * 237 * @return sEOK on success.238 * @return sOther error codes as defined for the add_configuration() function.239 * @return EOK on success. 240 * @return Other error codes as defined for the add_configuration() function. 239 241 * 240 242 */ … … 246 248 /** Read the networking subsystem global configuration. 247 249 * 248 * @return sEOK on success.249 * @return sOther error codes as defined for the add_configuration() function.250 * @return EOK on success. 251 * @return Other error codes as defined for the add_configuration() function. 250 252 * 251 253 */ … … 262 264 * its own one. 263 265 * 264 * @return sEOK on success.265 * @return sENOMEM if there is not enough memory left.266 * @return EOK on success. 267 * @return ENOMEM if there is not enough memory left. 266 268 * 267 269 */ … … 313 315 * its own one. 314 316 * 315 * @return sEOK on successful module termination.316 * @return sOther error codes as defined for the net_initialize() function.317 * @return sOther error codes as defined for the REGISTER_ME() macro function.317 * @return EOK on successful module termination. 318 * @return Other error codes as defined for the net_initialize() function. 319 * @return Other error codes as defined for the REGISTER_ME() macro function. 318 320 * 319 321 */ … … 337 339 goto out; 338 340 341 rc = startup(); 342 if (rc != EOK) 343 goto out; 344 345 task_retval(0); 339 346 async_manager(); 340 347 … … 353 360 * @param[out] data The found configuration settings data. 354 361 * 355 * @return sEOK.362 * @return EOK. 356 363 * 357 364 */ … … 415 422 * @param[in] netif The network interface specific data. 416 423 * 417 * @return sEOK on success.418 * @return sEINVAL if there are some settings missing.419 * @return sENOENT if the internet protocol module is not known.420 * @return sOther error codes as defined for the netif_probe_req() function.421 * @return sOther error codes as defined for the nil_device_req() function.422 * @return sOther error codes as defined for the needed internet layer423 * 424 * @return EOK on success. 425 * @return EINVAL if there are some settings missing. 426 * @return ENOENT if the internet protocol module is not known. 427 * @return Other error codes as defined for the netif_probe_req() function. 428 * @return Other error codes as defined for the nil_device_req() function. 429 * @return Other error codes as defined for the needed internet layer 430 * registering function. 424 431 * 425 432 */ … … 507 514 /** Read the configuration and start all network interfaces. 508 515 * 509 * @return sEOK on success.510 * @return sEXDEV if there is no available system-unique device identifier.511 * @return sEINVAL if any of the network interface names are not configured.512 * @return sENOMEM if there is not enough memory left.513 * @return sOther error codes as defined for the read_configuration()514 * 515 * @return sOther error codes as defined for the read_netif_configuration()516 * 517 * @return sOther error codes as defined for the start_device() function.516 * @return EOK on success. 517 * @return EXDEV if there is no available system-unique device identifier. 518 * @return EINVAL if any of the network interface names are not configured. 519 * @return ENOMEM if there is not enough memory left. 520 * @return Other error codes as defined for the read_configuration() 521 * function. 522 * @return Other error codes as defined for the read_netif_configuration() 523 * function. 524 * @return Other error codes as defined for the start_device() function. 518 525 * 519 526 */ … … 610 617 * in the answer parameter. 611 618 * 612 * @return sEOK on success.613 * @return sENOTSUP if the message is not known.619 * @return EOK on success. 620 * @return ENOTSUP if the message is not known. 614 621 * 615 622 * @see net_interface.h
Note:
See TracChangeset
for help on using the changeset viewer.