Rev 4350 | Rev 4707 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4350 | Rev 4703 | ||
---|---|---|---|
Line 66... | Line 66... | ||
66 | 66 | ||
67 | int netif_stop_req( int netif_phone, device_id_t device_id ){ |
67 | int netif_stop_req( int netif_phone, device_id_t device_id ){ |
68 | return async_req_1_0( netif_phone, NET_NETIF_STOP, device_id ); |
68 | return async_req_1_0( netif_phone, NET_NETIF_STOP, device_id ); |
69 | } |
69 | } |
70 | 70 | ||
- | 71 | int netif_stats_req( int netif_phone, device_id_t device_id, device_stats_ref stats ){ |
|
- | 72 | aid_t message_id; |
|
- | 73 | ipcarg_t result; |
|
- | 74 | ||
- | 75 | if( ! stats ) return EBADMEM; |
|
- | 76 | message_id = async_send_1( netif_phone, NET_NETIF_STATS, ( ipcarg_t ) device_id, NULL ); |
|
- | 77 | ipc_data_read_start( netif_phone, stats, sizeof( * stats )); |
|
- | 78 | async_wait_for( message_id, & result ); |
|
- | 79 | return ( int ) result; |
|
- | 80 | } |
|
- | 81 | ||
71 | int netif_bind_service( services_t service, device_id_t device_id, services_t me, async_client_conn_t receiver ){ |
82 | int netif_bind_service( services_t service, device_id_t device_id, services_t me, async_client_conn_t receiver ){ |
72 | return bind_service( service, device_id, me, 0, receiver ); |
83 | return bind_service( service, device_id, me, 0, receiver ); |
73 | } |
84 | } |
74 | 85 | ||
75 | /** @} |
86 | /** @} |