Subversion Repositories HelenOS

Rev

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

Rev 2802 Rev 3020
Line 203... Line 203...
203
 
203
 
204
#ifdef KERNEL
204
#ifdef KERNEL
205
 
205
 
206
#define IPC_MAX_PHONES  16
206
#define IPC_MAX_PHONES  16
207
 
207
 
-
 
208
#include <synch/spinlock.h>
-
 
209
#include <synch/mutex.h>
208
#include <synch/waitq.h>
210
#include <synch/waitq.h>
209
 
211
 
210
struct answerbox;
212
struct answerbox;
211
struct task;
213
struct task;
212
 
214
 
Line 223... Line 225...
223
    IPC_PHONE_SLAMMED
225
    IPC_PHONE_SLAMMED
224
} ipc_phone_state_t;
226
} ipc_phone_state_t;
225
 
227
 
226
/** Structure identifying phone (in TASK structure) */
228
/** Structure identifying phone (in TASK structure) */
227
typedef struct {
229
typedef struct {
228
    SPINLOCK_DECLARE(lock);
230
    mutex_t lock;
229
    link_t link;
231
    link_t link;
230
    struct answerbox *callee;
232
    struct answerbox *callee;
231
    ipc_phone_state_t state;
233
    ipc_phone_state_t state;
232
    atomic_t active_calls;
234
    atomic_t active_calls;
233
} phone_t;
235
} phone_t;