Changeset 9f22213 in mainline for generic/include/ipc/ipc.h
- Timestamp:
- 2006-03-19T12:43:12Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7c7aae16
- Parents:
- b4b45210
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/include/ipc/ipc.h
rb4b45210 r9f22213 38 38 39 39 /* Flags for calls */ 40 #define IPC_CALL_ANSWERED (1<<0) /**< This is answer to a call */41 #define IPC_CALL_STATIC_ALLOC (1<<1) /**< This call will not be freed on error */42 #define IPC_CALL_DISPATCHED (1<<2) /**< Call is in dispatch queue */40 #define IPC_CALL_ANSWERED (1<<0) /**< This is answer to a call */ 41 #define IPC_CALL_STATIC_ALLOC (1<<1) /**< This call will not be freed on error */ 42 #define IPC_CALL_DISPATCHED (1<<2) /**< Call is in dispatch queue */ 43 43 #define IPC_CALL_DISCARD_ANSWER (1<<3) /**< Answer will not be passed to 44 44 * userspace, will be discarded */ 45 #define IPC_CALL_FORWARDED (1<<4) /* Call was forwarded */ 45 46 46 47 /* Flags for ipc_wait_for_call */ … … 156 157 }; 157 158 159 typedef enum { 160 IPC_BUSY_FREE = 0, 161 IPC_BUSY_CONNECTING, 162 IPC_BUSY_CONNECTED 163 } ipc_busy_t; 164 158 165 struct phone_s { 159 166 SPINLOCK_DECLARE(lock); 160 167 link_t list; 161 168 answerbox_t *callee; 162 i nt busy;169 ipc_busy_t busy; 163 170 atomic_t active_calls; 164 171 }; … … 182 189 extern call_t * ipc_wait_for_call(answerbox_t *box, int flags); 183 190 extern void ipc_answer(answerbox_t *box, call_t *request); 184 extern void ipc_call(phone_t *phone, call_t *request);191 extern int ipc_call(phone_t *phone, call_t *call); 185 192 extern void ipc_call_sync(phone_t *phone, call_t *request); 186 193 extern void ipc_phone_init(phone_t *phone); … … 191 198 extern void ipc_call_static_init(call_t *call); 192 199 extern void task_print_list(void); 193 extern voidipc_forward(call_t *call, phone_t *newphone, answerbox_t *oldbox);200 extern int ipc_forward(call_t *call, phone_t *newphone, answerbox_t *oldbox); 194 201 195 202 extern answerbox_t *ipc_phone_0;
Note:
See TracChangeset
for help on using the changeset viewer.