Subversion Repositories HelenOS

Rev

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

Rev 2812 Rev 3042
Line 209... Line 209...
209
 
209
 
210
#ifdef KERNEL
210
#ifdef KERNEL
211
 
211
 
212
#define IPC_MAX_PHONES  16
212
#define IPC_MAX_PHONES  16
213
 
213
 
-
 
214
#include <synch/spinlock.h>
-
 
215
#include <synch/mutex.h>
214
#include <synch/waitq.h>
216
#include <synch/waitq.h>
215
 
217
 
216
struct answerbox;
218
struct answerbox;
217
struct task;
219
struct task;
218
 
220
 
Line 229... Line 231...
229
    IPC_PHONE_SLAMMED
231
    IPC_PHONE_SLAMMED
230
} ipc_phone_state_t;
232
} ipc_phone_state_t;
231
 
233
 
232
/** Structure identifying phone (in TASK structure) */
234
/** Structure identifying phone (in TASK structure) */
233
typedef struct {
235
typedef struct {
234
    SPINLOCK_DECLARE(lock);
236
    mutex_t lock;
235
    link_t link;
237
    link_t link;
236
    struct answerbox *callee;
238
    struct answerbox *callee;
237
    ipc_phone_state_t state;
239
    ipc_phone_state_t state;
238
    atomic_t active_calls;
240
    atomic_t active_calls;
239
} phone_t;
241
} phone_t;