Subversion Repositories HelenOS

Rev

Rev 4420 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4420 Rev 4537
Line 41... Line 41...
41
#include <atomic.h>
41
#include <atomic.h>
42
#include <bool.h>
42
#include <bool.h>
43
 
43
 
44
typedef ipc_callid_t aid_t;
44
typedef ipc_callid_t aid_t;
45
typedef void (*async_client_conn_t)(ipc_callid_t callid, ipc_call_t *call);
45
typedef void (*async_client_conn_t)(ipc_callid_t callid, ipc_call_t *call);
-
 
46
typedef void (*async_pending_t)(void);
-
 
47
 
-
 
48
extern atomic_t async_futex;
46
 
49
 
47
static inline void async_manager(void)
50
static inline void async_manager(void)
48
{
51
{
49
    fibril_switch(FIBRIL_TO_MANAGER);
52
    fibril_switch(FIBRIL_TO_MANAGER);
50
}
53
}
51
 
54
 
52
ipc_callid_t async_get_call_timeout(ipc_call_t *call, suseconds_t usecs);
55
extern ipc_callid_t async_get_call_timeout(ipc_call_t *call, suseconds_t usecs);
-
 
56
 
53
static inline ipc_callid_t async_get_call(ipc_call_t *data)
57
static inline ipc_callid_t async_get_call(ipc_call_t *data)
54
{
58
{
55
    return async_get_call_timeout(data, 0);
59
    return async_get_call_timeout(data, 0);
56
}
60
}
57
 
61
 
Line 61... Line 65...
61
 * arguments.  Each macros chooses between the fast and the slow version based
65
 * arguments.  Each macros chooses between the fast and the slow version based
62
 * on m.
66
 * on m.
63
 */
67
 */
64
 
68
 
65
#define async_send_0(phoneid, method, dataptr) \
69
#define async_send_0(phoneid, method, dataptr) \
66
    async_send_fast((phoneid), (method), 0, 0, 0, 0, (dataptr))
70
    async_send_fast((phoneid), (method), 0, 0, 0, 0, (dataptr))
67
#define async_send_1(phoneid, method, arg1, dataptr) \
71
#define async_send_1(phoneid, method, arg1, dataptr) \
68
    async_send_fast((phoneid), (method), (arg1), 0, 0, 0, (dataptr))
72
    async_send_fast((phoneid), (method), (arg1), 0, 0, 0, (dataptr))
69
#define async_send_2(phoneid, method, arg1, arg2, dataptr) \
73
#define async_send_2(phoneid, method, arg1, arg2, dataptr) \
70
    async_send_fast((phoneid), (method), (arg1), (arg2), 0, 0, (dataptr))
74
    async_send_fast((phoneid), (method), (arg1), (arg2), 0, 0, (dataptr))
71
#define async_send_3(phoneid, method, arg1, arg2, arg3, dataptr) \
75
#define async_send_3(phoneid, method, arg1, arg2, arg3, dataptr) \
72
    async_send_fast((phoneid), (method), (arg1), (arg2), (arg3), 0, (dataptr))
76
    async_send_fast((phoneid), (method), (arg1), (arg2), (arg3), 0, (dataptr))
73
#define async_send_4(phoneid, method, arg1, arg2, arg3, arg4, dataptr) \
77
#define async_send_4(phoneid, method, arg1, arg2, arg3, arg4, dataptr) \
74
    async_send_fast((phoneid), (method), (arg1), (arg2), (arg3), (arg4), \
78
    async_send_fast((phoneid), (method), (arg1), (arg2), (arg3), (arg4), \
75
        (dataptr))
79
        (dataptr))
76
#define async_send_5(phoneid, method, arg1, arg2, arg3, arg4, arg5, dataptr) \
80
#define async_send_5(phoneid, method, arg1, arg2, arg3, arg4, arg5, dataptr) \
77
    async_send_slow((phoneid), (method), (arg1), (arg2), (arg3), (arg4), \
81
    async_send_slow((phoneid), (method), (arg1), (arg2), (arg3), (arg4), \
78
        (arg5), (dataptr))
82
        (arg5), (dataptr))
79
 
83
 
80
extern aid_t async_send_fast(int phoneid, ipcarg_t method, ipcarg_t arg1,
84
extern aid_t async_send_fast(int phoneid, ipcarg_t method, ipcarg_t arg1,
81
    ipcarg_t arg2, ipcarg_t arg3, ipcarg_t arg4, ipc_call_t *dataptr);
85
    ipcarg_t arg2, ipcarg_t arg3, ipcarg_t arg4, ipc_call_t *dataptr);
82
extern aid_t async_send_slow(int phoneid, ipcarg_t method, ipcarg_t arg1,
86
extern aid_t async_send_slow(int phoneid, ipcarg_t method, ipcarg_t arg1,
83
    ipcarg_t arg2, ipcarg_t arg3, ipcarg_t arg4, ipcarg_t arg5,
87
    ipcarg_t arg2, ipcarg_t arg3, ipcarg_t arg4, ipcarg_t arg5,
84
    ipc_call_t *dataptr);
88
    ipc_call_t *dataptr);
85
extern void async_wait_for(aid_t amsgid, ipcarg_t *result);
89
extern void async_wait_for(aid_t amsgid, ipcarg_t *result);
86
extern int async_wait_timeout(aid_t amsgid, ipcarg_t *retval,
90
extern int async_wait_timeout(aid_t amsgid, ipcarg_t *retval,
87
    suseconds_t timeout);
91
    suseconds_t timeout);
88
 
92
 
89
fid_t async_new_connection(ipcarg_t in_phone_hash, ipc_callid_t callid,
93
extern fid_t async_new_connection(ipcarg_t in_phone_hash, ipc_callid_t callid,
90
    ipc_call_t *call, void (*cthread)(ipc_callid_t, ipc_call_t *));
94
    ipc_call_t *call, void (*cthread)(ipc_callid_t, ipc_call_t *));
91
void async_usleep(suseconds_t timeout);
95
extern void async_usleep(suseconds_t timeout);
92
void async_create_manager(void);
96
extern void async_create_manager(void);
93
void async_destroy_manager(void);
97
extern void async_destroy_manager(void);
94
int _async_init(void);
98
extern int _async_init(void);
95
 
99
 
96
extern void async_set_client_connection(async_client_conn_t conn);
100
extern void async_set_client_connection(async_client_conn_t conn);
97
extern void async_set_interrupt_received(async_client_conn_t conn);
101
extern void async_set_interrupt_received(async_client_conn_t conn);
-
 
102
extern void async_set_pending(async_pending_t pend);
98
 
103
 
99
/* Wrappers for simple communication */
104
/* Wrappers for simple communication */
100
#define async_msg_0(phone, method) \
105
#define async_msg_0(phone, method) \
101
    ipc_call_async_0((phone), (method), NULL, NULL, true)
106
    ipc_call_async_0((phone), (method), NULL, NULL, true)
102
#define async_msg_1(phone, method, arg1) \
107
#define async_msg_1(phone, method, arg1) \
103
    ipc_call_async_1((phone), (method), (arg1), NULL, NULL, \
108
    ipc_call_async_1((phone), (method), (arg1), NULL, NULL, \
104
        true)
109
        true)
105
#define async_msg_2(phone, method, arg1, arg2) \
110
#define async_msg_2(phone, method, arg1, arg2) \
106
    ipc_call_async_2((phone), (method), (arg1), (arg2), NULL, NULL, \
111
    ipc_call_async_2((phone), (method), (arg1), (arg2), NULL, NULL, \
107
        true)
112
        true)
108
#define async_msg_3(phone, method, arg1, arg2, arg3) \
113
#define async_msg_3(phone, method, arg1, arg2, arg3) \
109
    ipc_call_async_3((phone), (method), (arg1), (arg2), (arg3), NULL, NULL, \
114
    ipc_call_async_3((phone), (method), (arg1), (arg2), (arg3), NULL, NULL, \
110
        true)
115
        true)
111
#define async_msg_4(phone, method, arg1, arg2, arg3, arg4) \
116
#define async_msg_4(phone, method, arg1, arg2, arg3, arg4) \
112
    ipc_call_async_4((phone), (method), (arg1), (arg2), (arg3), (arg4), NULL, \
117
    ipc_call_async_4((phone), (method), (arg1), (arg2), (arg3), (arg4), NULL, \
113
        NULL, true)
118
        NULL, true)
114
#define async_msg_5(phone, method, arg1, arg2, arg3, arg4, arg5) \
119
#define async_msg_5(phone, method, arg1, arg2, arg3, arg4, arg5) \
115
    ipc_call_async_5((phone), (method), (arg1), (arg2), (arg3), (arg4), \
120
    ipc_call_async_5((phone), (method), (arg1), (arg2), (arg3), (arg4), \
116
        (arg5), NULL, NULL, true)
121
        (arg5), NULL, NULL, true)
117
 
122
 
118
/*
123
/*
119
 * User-friendly wrappers for async_req_fast() and async_req_slow(). The macros
124
 * User-friendly wrappers for async_req_fast() and async_req_slow(). The macros
120
 * are in the form async_req_m_n(), where m is the number of payload arguments
125
 * are in the form async_req_m_n(), where m is the number of payload arguments
121
 * and n is the number of return arguments. The macros decide between the fast
126
 * and n is the number of return arguments. The macros decide between the fast
122
 * and slow verion based on m.
127
 * and slow verion based on m.
123
 */
128
 */
124
#define async_req_0_0(phoneid, method) \
129
#define async_req_0_0(phoneid, method) \
125
    async_req_fast((phoneid), (method), 0, 0, 0, 0, NULL, NULL, NULL, NULL, \
130
    async_req_fast((phoneid), (method), 0, 0, 0, 0, NULL, NULL, NULL, NULL, \
126
    NULL)
131
        NULL)
127
#define async_req_0_1(phoneid, method, r1) \
132
#define async_req_0_1(phoneid, method, r1) \
128
    async_req_fast((phoneid), (method), 0, 0, 0, 0, (r1), NULL, NULL, NULL, \
133
    async_req_fast((phoneid), (method), 0, 0, 0, 0, (r1), NULL, NULL, NULL, \
129
    NULL)
134
        NULL)
130
#define async_req_0_2(phoneid, method, r1, r2) \
135
#define async_req_0_2(phoneid, method, r1, r2) \
131
    async_req_fast((phoneid), (method), 0, 0, 0, 0, (r1), (r2), NULL, NULL, \
136
    async_req_fast((phoneid), (method), 0, 0, 0, 0, (r1), (r2), NULL, NULL, \
132
    NULL)
137
        NULL)
133
#define async_req_0_3(phoneid, method, r1, r2, r3) \
138
#define async_req_0_3(phoneid, method, r1, r2, r3) \
134
    async_req_fast((phoneid), (method), 0, 0, 0, 0, (r1), (r2), (r3), NULL, \
139
    async_req_fast((phoneid), (method), 0, 0, 0, 0, (r1), (r2), (r3), NULL, \
135
    NULL)
140
        NULL)
136
#define async_req_0_4(phoneid, method, r1, r2, r3, r4) \
141
#define async_req_0_4(phoneid, method, r1, r2, r3, r4) \
137
    async_req_fast((phoneid), (method), 0, 0, 0, 0, (r1), (r2), (r3), (r4), \
142
    async_req_fast((phoneid), (method), 0, 0, 0, 0, (r1), (r2), (r3), (r4), \
138
    NULL)
143
        NULL)
139
#define async_req_0_5(phoneid, method, r1, r2, r3, r4, r5) \
144
#define async_req_0_5(phoneid, method, r1, r2, r3, r4, r5) \
140
    async_req_fast((phoneid), (method), 0, 0, 0, 0, (r1), (r2), (r3), (r4), \
145
    async_req_fast((phoneid), (method), 0, 0, 0, 0, (r1), (r2), (r3), (r4), \
141
    (r5))
146
        (r5))
142
#define async_req_1_0(phoneid, method, arg1) \
147
#define async_req_1_0(phoneid, method, arg1) \
143
    async_req_fast((phoneid), (method), (arg1), 0, 0, 0, NULL, NULL, NULL, \
148
    async_req_fast((phoneid), (method), (arg1), 0, 0, 0, NULL, NULL, NULL, \
144
    NULL, NULL)
149
        NULL, NULL)
145
#define async_req_1_1(phoneid, method, arg1, rc1) \
150
#define async_req_1_1(phoneid, method, arg1, rc1) \
146
    async_req_fast((phoneid), (method), (arg1), 0, 0, 0, (rc1), NULL, NULL, \
151
    async_req_fast((phoneid), (method), (arg1), 0, 0, 0, (rc1), NULL, NULL, \
147
    NULL, NULL)
152
        NULL, NULL)
148
#define async_req_1_2(phoneid, method, arg1, rc1, rc2) \
153
#define async_req_1_2(phoneid, method, arg1, rc1, rc2) \
149
    async_req_fast((phoneid), (method), (arg1), 0, 0, 0, (rc1), (rc2), NULL, \
154
    async_req_fast((phoneid), (method), (arg1), 0, 0, 0, (rc1), (rc2), NULL, \
150
    NULL, NULL)
155
        NULL, NULL)
151
#define async_req_1_3(phoneid, method, arg1, rc1, rc2, rc3) \
156
#define async_req_1_3(phoneid, method, arg1, rc1, rc2, rc3) \
152
    async_req_fast((phoneid), (method), (arg1), 0, 0, 0, (rc1), (rc2), (rc3), \
157
    async_req_fast((phoneid), (method), (arg1), 0, 0, 0, (rc1), (rc2), (rc3), \
153
    NULL, NULL)
158
        NULL, NULL)
154
#define async_req_1_4(phoneid, method, arg1, rc1, rc2, rc3, rc4) \
159
#define async_req_1_4(phoneid, method, arg1, rc1, rc2, rc3, rc4) \
155
    async_req_fast((phoneid), (method), (arg1), 0, 0, 0, (rc1), (rc2), (rc3), \
160
    async_req_fast((phoneid), (method), (arg1), 0, 0, 0, (rc1), (rc2), (rc3), \
156
    (rc4), NULL)
161
        (rc4), NULL)
157
#define async_req_1_5(phoneid, method, arg1, rc1, rc2, rc3, rc4, rc5) \
162
#define async_req_1_5(phoneid, method, arg1, rc1, rc2, rc3, rc4, rc5) \
158
    async_req_fast((phoneid), (method), (arg1), 0, 0, 0, (rc1), (rc2), (rc3), \
163
    async_req_fast((phoneid), (method), (arg1), 0, 0, 0, (rc1), (rc2), (rc3), \
159
    (rc4), (rc5))
164
        (rc4), (rc5))
160
#define async_req_2_0(phoneid, method, arg1, arg2) \
165
#define async_req_2_0(phoneid, method, arg1, arg2) \
161
    async_req_fast((phoneid), (method), (arg1), (arg2), 0, 0, NULL, NULL, \
166
    async_req_fast((phoneid), (method), (arg1), (arg2), 0, 0, NULL, NULL, \
162
    NULL, NULL, NULL)
167
        NULL, NULL, NULL)
163
#define async_req_2_1(phoneid, method, arg1, arg2, rc1) \
168
#define async_req_2_1(phoneid, method, arg1, arg2, rc1) \
164
    async_req_fast((phoneid), (method), (arg1), (arg2), 0, 0, (rc1), NULL, \
169
    async_req_fast((phoneid), (method), (arg1), (arg2), 0, 0, (rc1), NULL, \
165
    NULL, NULL, NULL)
170
        NULL, NULL, NULL)
166
#define async_req_2_2(phoneid, method, arg1, arg2, rc1, rc2) \
171
#define async_req_2_2(phoneid, method, arg1, arg2, rc1, rc2) \
167
    async_req_fast((phoneid), (method), (arg1), (arg2), 0, 0, (rc1), (rc2), \
172
    async_req_fast((phoneid), (method), (arg1), (arg2), 0, 0, (rc1), (rc2), \
168
    NULL, NULL, NULL)
173
        NULL, NULL, NULL)
169
#define async_req_2_3(phoneid, method, arg1, arg2, rc1, rc2, rc3) \
174
#define async_req_2_3(phoneid, method, arg1, arg2, rc1, rc2, rc3) \
170
    async_req_fast((phoneid), (method), (arg1), (arg2), 0, 0, (rc1), (rc2), \
175
    async_req_fast((phoneid), (method), (arg1), (arg2), 0, 0, (rc1), (rc2), \
171
    (rc3), NULL, NULL)
176
        (rc3), NULL, NULL)
172
#define async_req_2_4(phoneid, method, arg1, arg2, rc1, rc2, rc3, rc4) \
177
#define async_req_2_4(phoneid, method, arg1, arg2, rc1, rc2, rc3, rc4) \
173
    async_req_fast((phoneid), (method), (arg1), (arg2), 0, 0, (rc1), (rc2), \
178
    async_req_fast((phoneid), (method), (arg1), (arg2), 0, 0, (rc1), (rc2), \
174
    (rc3), (rc4), NULL)
179
        (rc3), (rc4), NULL)
175
#define async_req_2_5(phoneid, method, arg1, arg2, rc1, rc2, rc3, rc4, rc5) \
180
#define async_req_2_5(phoneid, method, arg1, arg2, rc1, rc2, rc3, rc4, rc5) \
176
    async_req_fast((phoneid), (method), (arg1), (arg2), 0, 0, (rc1), (rc2), \
181
    async_req_fast((phoneid), (method), (arg1), (arg2), 0, 0, (rc1), (rc2), \
177
    (rc3), (rc4), (rc5))
182
        (rc3), (rc4), (rc5))
178
#define async_req_3_0(phoneid, method, arg1, arg2, arg3) \
183
#define async_req_3_0(phoneid, method, arg1, arg2, arg3) \
179
    async_req_fast((phoneid), (method), (arg1), (arg2), (arg3), 0, NULL, NULL, \
184
    async_req_fast((phoneid), (method), (arg1), (arg2), (arg3), 0, NULL, NULL, \
180
    NULL, NULL, NULL)
185
        NULL, NULL, NULL)
181
#define async_req_3_1(phoneid, method, arg1, arg2, arg3, rc1) \
186
#define async_req_3_1(phoneid, method, arg1, arg2, arg3, rc1) \
182
    async_req_fast((phoneid), (method), (arg1), (arg2), (arg3), 0, (rc1), \
187
    async_req_fast((phoneid), (method), (arg1), (arg2), (arg3), 0, (rc1), \
183
    NULL, NULL, NULL, NULL)
188
        NULL, NULL, NULL, NULL)
184
#define async_req_3_2(phoneid, method, arg1, arg2, arg3, rc1, rc2) \
189
#define async_req_3_2(phoneid, method, arg1, arg2, arg3, rc1, rc2) \
185
    async_req_fast((phoneid), (method), (arg1), (arg2), (arg3), 0, (rc1), \
190
    async_req_fast((phoneid), (method), (arg1), (arg2), (arg3), 0, (rc1), \
186
    (rc2), NULL, NULL, NULL)
191
        (rc2), NULL, NULL, NULL)
187
#define async_req_3_3(phoneid, method, arg1, arg2, arg3, rc1, rc2, rc3) \
192
#define async_req_3_3(phoneid, method, arg1, arg2, arg3, rc1, rc2, rc3) \
188
    async_req_fast((phoneid), (method), (arg1), (arg2), (arg3), 0, (rc1), \
193
    async_req_fast((phoneid), (method), (arg1), (arg2), (arg3), 0, (rc1), \
189
    (rc2), (rc3), NULL, NULL)
194
        (rc2), (rc3), NULL, NULL)
190
#define async_req_3_4(phoneid, method, arg1, arg2, arg3, rc1, rc2, rc3, rc4) \
195
#define async_req_3_4(phoneid, method, arg1, arg2, arg3, rc1, rc2, rc3, rc4) \
191
    async_req_fast((phoneid), (method), (arg1), (arg2), (arg3), 0, (rc1), \
196
    async_req_fast((phoneid), (method), (arg1), (arg2), (arg3), 0, (rc1), \
192
    (rc2), (rc3), (rc4), NULL)
197
        (rc2), (rc3), (rc4), NULL)
193
#define async_req_3_5(phoneid, method, arg1, arg2, arg3, rc1, rc2, rc3, rc4, \
198
#define async_req_3_5(phoneid, method, arg1, arg2, arg3, rc1, rc2, rc3, rc4, \
194
    rc5) \
199
    rc5) \
195
    async_req_fast((phoneid), (method), (arg1), (arg2), (arg3), 0, (rc1), \
200
    async_req_fast((phoneid), (method), (arg1), (arg2), (arg3), 0, (rc1), \
196
        (rc2), (rc3), (rc4), (rc5))
201
        (rc2), (rc3), (rc4), (rc5))
197
#define async_req_4_0(phoneid, method, arg1, arg2, arg3, arg4) \
202
#define async_req_4_0(phoneid, method, arg1, arg2, arg3, arg4) \
198
    async_req_fast((phoneid), (method), (arg1), (arg2), (arg3), (arg4), NULL, \
203
    async_req_fast((phoneid), (method), (arg1), (arg2), (arg3), (arg4), NULL, \
199
    NULL, NULL, NULL, NULL)
204
        NULL, NULL, NULL, NULL)
200
#define async_req_4_1(phoneid, method, arg1, arg2, arg3, arg4, rc1) \
205
#define async_req_4_1(phoneid, method, arg1, arg2, arg3, arg4, rc1) \
201
    async_req_fast((phoneid), (method), (arg1), (arg2), (arg3), (arg4), (rc1), \
206
    async_req_fast((phoneid), (method), (arg1), (arg2), (arg3), (arg4), (rc1), \
202
    NULL, NULL, NULL, NULL)
207
        NULL, NULL, NULL, NULL)
203
#define async_req_4_2(phoneid, method, arg1, arg2, arg3, arg4, rc1, rc2) \
208
#define async_req_4_2(phoneid, method, arg1, arg2, arg3, arg4, rc1, rc2) \
204
    async_req_fast((phoneid), (method), (arg1), (arg2), (arg3), (arg4), (rc1), \
209
    async_req_fast((phoneid), (method), (arg1), (arg2), (arg3), (arg4), (rc1), \
205
    (rc2), NULL, NULL, NULL)
210
        (rc2), NULL, NULL, NULL)
206
#define async_req_4_3(phoneid, method, arg1, arg2, arg3, arg4, rc1, rc2, rc3) \
211
#define async_req_4_3(phoneid, method, arg1, arg2, arg3, arg4, rc1, rc2, rc3) \
207
    async_req_fast((phoneid), (method), (arg1), (arg2), (arg3), (arg4), (rc1), \
212
    async_req_fast((phoneid), (method), (arg1), (arg2), (arg3), (arg4), (rc1), \
208
    (rc2), (rc3), NULL, NULL)
213
        (rc2), (rc3), NULL, NULL)
209
#define async_req_4_4(phoneid, method, arg1, arg2, arg3, arg4, rc1, rc2, rc3, \
214
#define async_req_4_4(phoneid, method, arg1, arg2, arg3, arg4, rc1, rc2, rc3, \
210
    rc4) \
215
    rc4) \
211
    async_req_fast((phoneid), (method), (arg1), (arg2), (arg3), (arg4), \
216
    async_req_fast((phoneid), (method), (arg1), (arg2), (arg3), (arg4), \
212
        (rc1), (rc2), (rc3), (rc4), NULL)
217
        (rc1), (rc2), (rc3), (rc4), NULL)
213
#define async_req_4_5(phoneid, method, arg1, arg2, arg3, arg4, rc1, rc2, rc3, \
218
#define async_req_4_5(phoneid, method, arg1, arg2, arg3, arg4, rc1, rc2, rc3, \
214
    rc4, rc5) \
219
    rc4, rc5) \
215
    async_req_fast((phoneid), (method), (arg1), (arg2), (arg3), (arg4), \
220
    async_req_fast((phoneid), (method), (arg1), (arg2), (arg3), (arg4), \
216
        (rc1), (rc2), (rc3), (rc4), (rc5))
221
        (rc1), (rc2), (rc3), (rc4), (rc5))
217
#define async_req_5_0(phoneid, method, arg1, arg2, arg3, arg4, arg5) \
222
#define async_req_5_0(phoneid, method, arg1, arg2, arg3, arg4, arg5) \
218
    async_req_slow((phoneid), (method), (arg1), (arg2), (arg3), (arg4), \
223
    async_req_slow((phoneid), (method), (arg1), (arg2), (arg3), (arg4), \
219
        (arg5), NULL, NULL, NULL, NULL, NULL)
224
        (arg5), NULL, NULL, NULL, NULL, NULL)
220
#define async_req_5_1(phoneid, method, arg1, arg2, arg3, arg4, arg5, rc1) \
225
#define async_req_5_1(phoneid, method, arg1, arg2, arg3, arg4, arg5, rc1) \
221
    async_req_slow((phoneid), (method), (arg1), (arg2), (arg3), (arg4), \
226
    async_req_slow((phoneid), (method), (arg1), (arg2), (arg3), (arg4), \
222
    (arg5), (rc1), NULL, NULL, NULL, NULL)
227
        (arg5), (rc1), NULL, NULL, NULL, NULL)
223
#define async_req_5_2(phoneid, method, arg1, arg2, arg3, arg4, arg5, rc1, rc2) \
228
#define async_req_5_2(phoneid, method, arg1, arg2, arg3, arg4, arg5, rc1, rc2) \
224
    async_req_slow((phoneid), (method), (arg1), (arg2), (arg3), (arg4), \
229
    async_req_slow((phoneid), (method), (arg1), (arg2), (arg3), (arg4), \
225
    (arg5), (rc1), (rc2), NULL, NULL, NULL)
230
        (arg5), (rc1), (rc2), NULL, NULL, NULL)
226
#define async_req_5_3(phoneid, method, arg1, arg2, arg3, arg4, arg5, rc1, rc2, \
231
#define async_req_5_3(phoneid, method, arg1, arg2, arg3, arg4, arg5, rc1, rc2, \
227
    rc3) \
232
    rc3) \
228
    async_req_slow((phoneid), (method), (arg1), (arg2), (arg3), (arg4), \
233
    async_req_slow((phoneid), (method), (arg1), (arg2), (arg3), (arg4), \
229
        (arg5), (rc1), (rc2), (rc3), NULL, NULL)
234
        (arg5), (rc1), (rc2), (rc3), NULL, NULL)
230
#define async_req_5_4(phoneid, method, arg1, arg2, arg3, arg4, arg5, rc1, rc2, \
235
#define async_req_5_4(phoneid, method, arg1, arg2, arg3, arg4, arg5, rc1, rc2, \
Line 251... Line 256...
251
static inline void async_serialize_end(void)
256
static inline void async_serialize_end(void)
252
{
257
{
253
    fibril_dec_sercount();
258
    fibril_dec_sercount();
254
}
259
}
255
 
260
 
256
extern atomic_t async_futex;
-
 
257
 
-
 
258
#endif
261
#endif
259
 
262
 
260
/** @}
263
/** @}
261
 */
264
 */