Changeset eadaeae8 in mainline for kernel/generic/src/ipc/ops/conctmeto.c
- Timestamp:
- 2018-03-21T20:58:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3be9d10
- Parents:
- 874381a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/ops/conctmeto.c
r874381a readaeae8 46 46 * That will be done once the phone is connected. 47 47 */ 48 cap_ handle_t phone_handle;48 cap_phone_handle_t phone_handle; 49 49 kobject_t *phone_obj; 50 50 errno_t rc = phone_alloc(TASK, false, &phone_handle, &phone_obj); … … 58 58 59 59 /* Remember the handle */ 60 call->priv = phone_handle;60 call->priv = CAP_HANDLE_RAW(phone_handle); 61 61 62 62 return EOK; … … 65 65 static errno_t request_forget(call_t *call) 66 66 { 67 cap_ handle_t phone_handle = (cap_handle_t) call->priv;67 cap_phone_handle_t phone_handle = (cap_handle_t) call->priv; 68 68 69 if ( phone_handle< 0)69 if (CAP_HANDLE_RAW(phone_handle) < 0) 70 70 return EOK; 71 71 … … 103 103 static errno_t answer_process(call_t *answer) 104 104 { 105 cap_ handle_t phone_handle = (cap_handle_t) answer->priv;105 cap_phone_handle_t phone_handle = (cap_handle_t) answer->priv; 106 106 phone_t *phone = (phone_t *) IPC_GET_ARG5(answer->data); 107 107 108 108 if (IPC_GET_RETVAL(answer->data)) { 109 if ( phone_handle>= 0) {109 if (CAP_HANDLE_RAW(phone_handle) >= 0) { 110 110 /* 111 111 * Cleanup the unpublished capability and drop … … 123 123 cap_publish(TASK, phone_handle, phone->kobject); 124 124 125 IPC_SET_ARG5(answer->data, phone_handle);125 IPC_SET_ARG5(answer->data, CAP_HANDLE_RAW(phone_handle)); 126 126 } 127 127
Note:
See TracChangeset
for help on using the changeset viewer.