Changeset 6b82009 in mainline for uspace/lib/net/nil
- Timestamp:
- 2011-06-22T20:41:41Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ef09a7a
- Parents:
- 55091847
- Location:
- uspace/lib/net/nil
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/nil/nil_remote.c
r55091847 r6b82009 45 45 /** Notify the network interface layer about the device state change. 46 46 * 47 * @param[in] nil_phone Network interface layer phone.47 * @param[in] sess Network interface layer session. 48 48 * @param[in] device_id Device identifier. 49 49 * @param[in] state New device state. … … 54 54 * 55 55 */ 56 int nil_device_state_msg(int nil_phone, device_id_t device_id, int state) 56 int nil_device_state_msg(async_sess_t *sess, device_id_t device_id, 57 sysarg_t state) 57 58 { 58 return generic_device_state_msg_remote( nil_phone, NET_NIL_DEVICE_STATE,59 return generic_device_state_msg_remote(sess, NET_NIL_DEVICE_STATE, 59 60 device_id, state, 0); 60 61 } … … 65 66 * upper layers. 66 67 * 67 * @param[in] nil_phone Network interface layer phone.68 * @param[in] sess Network interface layer session. 68 69 * @param[in] device_id Source device identifier. 69 70 * @param[in] packet Received packet or the received packet queue. … … 75 76 * 76 77 */ 77 int nil_received_msg( int nil_phone, device_id_t device_id,78 int nil_received_msg(async_sess_t *sess, device_id_t device_id, 78 79 packet_t *packet, services_t target) 79 80 { 80 return generic_received_msg_remote( nil_phone, NET_NIL_RECEIVED,81 return generic_received_msg_remote(sess, NET_NIL_RECEIVED, 81 82 device_id, packet_get_id(packet), target, 0); 82 83 } -
uspace/lib/net/nil/nil_skel.c
r55091847 r6b82009 38 38 #include <bool.h> 39 39 #include <errno.h> 40 #include <ns.h> 40 41 #include <nil_skel.h> 41 42 #include <net_interface.h> 42 43 #include <net/modules.h> 43 #include <async_obsolete.h>44 45 // FIXME: remove this header46 #include <kernel/ipc/ipc_methods.h>47 44 48 45 /** Default thread for new connections. … … 100 97 * @return Other error codes as defined for the nil_initialize() 101 98 * function. 102 * @return Other error codes as defined for the REGISTER_ME() macro103 * function.104 99 * 105 100 */ 106 int nil_module_start( int service)101 int nil_module_start(sysarg_t service) 107 102 { 108 103 async_set_client_connection(nil_client_connection); 109 int net_phone= net_connect_module();110 if ( net_phone < 0)111 return net_phone;104 async_sess_t *sess = net_connect_module(); 105 if (!sess) 106 return ENOENT; 112 107 113 108 int rc = pm_init(); … … 115 110 return rc; 116 111 117 rc = nil_initialize( net_phone);112 rc = nil_initialize(sess); 118 113 if (rc != EOK) 119 114 goto out; 120 115 121 rc = async_obsolete_connect_to_me(PHONE_NS, service, 0, 0, NULL, NULL);116 rc = service_register(service); 122 117 if (rc != EOK) 123 118 goto out;
Note:
See TracChangeset
for help on using the changeset viewer.