Changeset 14f1db0 in mainline for uspace/lib/net/netif/netif_nil_bundle.c
- Timestamp:
- 2010-04-09T12:54:57Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a1caa3c2
- Parents:
- 24ab58b3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/netif/netif_nil_bundle.c
r24ab58b3 r14f1db0 41 41 #include <net_messages.h> 42 42 #include <packet/packet.h> 43 #include <nil_module.h>44 43 #include <netif_nil_bundle.h> 45 #include <netif.h> 44 #include <netif_local.h> 45 #include <nil_local.h> 46 46 47 47 /** Distribute the messages between the module parts. … … 62 62 ipc_call_t *call, ipc_call_t *answer, int *answer_count) 63 63 { 64 if ( IS_NET_NIL_MESSAGE(call)64 if ((IS_NET_NIL_MESSAGE(call)) 65 65 || (IPC_GET_METHOD(*call) == IPC_M_CONNECT_TO_ME)) 66 return nil_message(name, callid, call, answer, answer_count); 66 return nil_message_standalone(name, callid, call, answer, 67 answer_count); 67 68 else 68 return netif_message(name, callid, call, answer, answer_count); 69 return netif_module_message_standalone(name, callid, call, answer, 70 answer_count); 69 71 } 70 72 71 /** Starts the bundle network interface module. 72 * Initializes the client connection serving function, initializes both module parts, registers the module service and starts the async manager, processing IPC messages in an infinite loop. 73 * @param[in] client_connection The client connection processing function. The module skeleton propagates its own one. 74 * @returns EOK on success. 75 * @returns Other error codes as defined for each specific module message function. 73 /** Start the bundle network interface module. 74 * 75 * Initialize the client connection serving function, initialize 76 * both module parts, register the module service and start the 77 * async manager, processing IPC messages in an infinite loop. 78 * 79 * @param[in] client_connection The client connection processing 80 * function. The module skeleton propagates 81 * its own one. 82 * 83 * @return EOK on success. 84 * @return Other error codes as defined for each specific module message 85 * function. 86 * 76 87 */ 77 int netif_nil_module_start(async_client_conn_t client_connection){ 88 int netif_nil_module_start(async_client_conn_t client_connection) 89 { 78 90 ERROR_DECLARE; 79 91 80 92 ERROR_PROPAGATE(netif_init_module(client_connection)); 81 if (ERROR_OCCURRED(nil_initialize(netif_globals.net_phone))){93 if (ERROR_OCCURRED(nil_initialize(netif_globals.net_phone))) { 82 94 pm_destroy(); 83 95 return ERROR_CODE; 84 96 } 85 return netif_run_module(); 97 98 async_manager(); 99 100 pm_destroy(); 101 return EOK; 86 102 } 87 103
Note:
See TracChangeset
for help on using the changeset viewer.