Changeset 6364d3c in mainline for kernel/generic
- Timestamp:
- 2007-12-04T20:29:55Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9119d25
- Parents:
- 38c706cc
- Location:
- kernel/generic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/ipc/ipc.h
r38c706cc r6364d3c 119 119 * The protocol for negotiating is: 120 120 * - sys_connect_to_me - sends a message IPC_M_CONNECT_TO_ME 121 * - sys_wait_for_call- upon receipt tries to allocate new phone121 * - recipient - upon receipt tries to allocate new phone 122 122 * - if it fails, responds with ELIMIT 123 123 * - passes call to userspace. If userspace … … 127 127 * - the allocated phoneid is passed to userspace 128 128 * (on the receiving side) as ARG5 of the call. 129 * - the caller obtains taskid of the called thread130 129 */ 131 130 #define IPC_M_CONNECT_TO_ME 1 … … 142 141 * address of the phone that should be connected 143 142 * (TODO: it leaks to userspace) 144 * recipient- if ipc_answer == 0, then accept connection143 * - recipient - if ipc_answer == 0, then accept connection 145 144 * - otherwise connection refused 146 * - recepient may forward message. Forwarding 147 * system message 145 * - recepient may forward message. 148 146 * 149 147 */ -
kernel/generic/src/ipc/sysipc.c
r38c706cc r6364d3c 185 185 /* The connection was accepted */ 186 186 phone_connect(phoneid, &answer->sender->answerbox); 187 /* Set 'phone hash' as arg 3of response */187 /* Set 'phone hash' as arg5 of response */ 188 188 IPC_SET_ARG5(answer->data, 189 189 (unative_t) &TASK->phones[phoneid]); … … 270 270 if (newphid < 0) 271 271 return ELIMIT; 272 /* Set arg 3for server */272 /* Set arg5 for server */ 273 273 IPC_SET_ARG5(call->data, (unative_t) &TASK->phones[newphid]); 274 274 call->flags |= IPC_CALL_CONN_ME_TO;
Note:
See TracChangeset
for help on using the changeset viewer.