- Timestamp:
- 2006-05-16T09:30:42Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ec153a0
- Parents:
- 51d6f80
- Location:
- libipc
- Files:
-
- 1 added
- 2 edited
-
generic/ipc.c (modified) (1 diff)
-
include/ipc.h (modified) (1 diff)
-
include/services.h (added)
Legend:
- Unmodified
- Added
- Removed
-
libipc/generic/ipc.c
r51d6f80 r250717cc 148 148 149 149 150 /** Send answer to a received call */ 151 ipcarg_t ipc_answer(ipc_callid_t callid, ipcarg_t retval, ipcarg_t arg1, 150 /** Send a fast answer to a received call. 151 * 152 * The fast answer makes use of passing retval and first two arguments in registers. 153 * If you need to return more, use the ipc_answer() instead. 154 * 155 * @param callid ID of the call being answered. 156 * @param retval Return value. 157 * @param arg1 First return argument. 158 * @param arg2 Second return argument. 159 * 160 * @return Zero on success or a value from @ref errno.h on failure. 161 */ 162 ipcarg_t ipc_answer_fast(ipc_callid_t callid, ipcarg_t retval, ipcarg_t arg1, 152 163 ipcarg_t arg2) 153 164 { 154 165 return __SYSCALL4(SYS_IPC_ANSWER_FAST, callid, retval, arg1, arg2); 155 166 } 167 168 /** Send a full answer to a received call. 169 * 170 * @param callid ID of the call being answered. 171 * @param call Call data. Must be already initialized by the responder. 172 * 173 * @return Zero on success or a value from @ref errno.h on failure. 174 */ 175 ipcarg_t ipc_answer(ipc_callid_t callid, ipc_call_t *call) 176 { 177 return __SYSCALL2(SYS_IPC_ANSWER, callid, (sysarg_t) call); 178 } 179 156 180 157 181 /** Try to dispatch queed calls from async queue */ -
libipc/include/ipc.h
r51d6f80 r250717cc 55 55 ipcarg_t *result); 56 56 extern ipc_callid_t ipc_wait_for_call(ipc_call_t *data, int flags); 57 extern ipcarg_t ipc_answer (ipc_callid_t callid, ipcarg_t retval, ipcarg_t arg1,57 extern ipcarg_t ipc_answer_fast(ipc_callid_t callid, ipcarg_t retval, ipcarg_t arg1, 58 58 ipcarg_t arg2); 59 extern ipcarg_t ipc_answer(ipc_callid_t callid, ipc_call_t *call); 59 60 60 61 #define ipc_call_async(phoneid,method,arg1,private, callback) (ipc_call_async_2(phoneid, method, arg1, 0, private, callback))
Note:
See TracChangeset
for help on using the changeset viewer.
