Changeset 241f1985 in mainline for uspace/lib/c/generic/taskman_noasync.c
- Timestamp:
- 2019-08-31T10:45:17Z (6 years ago)
- Children:
- 102f641
- Parents:
- f92b315
- git-author:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-23 22:04:34)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-31 10:45:17)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/taskman_noasync.c
rf92b315 r241f1985 33 33 */ 34 34 35 #define LIBC_ASYNC_C_36 #include <ipc/ipc.h>37 35 #include "private/async.h" 38 36 #include "private/taskman.h" 39 #undef LIBC_ASYNC_C_ 37 38 #undef _LIBC_ASYNC_H_ 39 #include <ipc/ipc.h> 40 #define _LIBC_ASYNC_H_ 40 41 41 42 #include <errno.h> … … 50 51 * @return EOK on success, otherwise propagated error code 51 52 */ 52 int taskman_intro_ns_noasync(void)53 errno_t taskman_intro_ns_noasync(void) 53 54 { 54 55 assert(session_taskman); 55 int phone = async_session_phone(session_taskman);56 cap_phone_handle_t phone = async_session_phone(session_taskman); 56 57 57 ipc_call_async_0(phone, TASKMAN_I_AM_NS, NULL , NULL, false);58 ipc_call_async_0(phone, TASKMAN_I_AM_NS, NULL); 58 59 59 ipc_call_async_3(phone, IPC_M_CONNECT_TO_ME, 0, 0, 0, NULL , NULL, false);60 ipc_call_async_3(phone, IPC_M_CONNECT_TO_ME, 0, 0, 0, NULL); 60 61 61 62 /* … … 67 68 68 69 69 void task_retval_noasync( int retval)70 void task_retval_noasync(errno_t retval) 70 71 { 71 72 assert(session_taskman); 72 int phone = async_session_phone(session_taskman);73 cap_phone_handle_t phone = async_session_phone(session_taskman); 73 74 74 75 /* Just send it and don't wait for an answer. */ 75 ipc_call_async_2(phone, TASKMAN_RETVAL, retval, false, 76 NULL, NULL, false); 76 ipc_call_async_2(phone, TASKMAN_RETVAL, retval, false, NULL); 77 77 } 78 78
Note:
See TracChangeset
for help on using the changeset viewer.