Changeset 622e7c9 in mainline
- Timestamp:
- 2020-05-05T16:15:09Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ccbd2e1
- Parents:
- 698ce34c
- Location:
- uspace
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/hid/usbhid/mouse/mousedev.c
r698ce34c r622e7c9 422 422 423 423 /* Hangup session to the console */ 424 if (mouse_dev->mouse_sess != NULL) { 425 const errno_t ret = async_hangup(mouse_dev->mouse_sess); 426 if (ret != EOK) 427 usb_log_warning("Failed to hang up mouse session: " 428 "%p, %s.\n", mouse_dev->mouse_sess, str_error(ret)); 429 } 424 if (mouse_dev->mouse_sess != NULL) 425 async_hangup(mouse_dev->mouse_sess); 430 426 431 427 free(mouse_dev->buttons); -
uspace/lib/c/generic/async/client.c
r698ce34c r622e7c9 1050 1050 } 1051 1051 1052 static errno_tasync_hangup_internal(cap_phone_handle_t phone)1053 { 1054 returnipc_hangup(phone);1052 static void async_hangup_internal(cap_phone_handle_t phone) 1053 { 1054 (void) ipc_hangup(phone); 1055 1055 } 1056 1056 … … 1058 1058 * 1059 1059 * @param sess Session to hung up. 1060 * 1061 * @return Zero on success or an error code. 1062 * 1063 */ 1064 errno_t async_hangup(async_sess_t *sess) 1060 */ 1061 void async_hangup(async_sess_t *sess) 1065 1062 { 1066 1063 async_exch_t *exch; … … 1071 1068 assert(sess->exchanges == 0); 1072 1069 1073 errno_t rc =async_hangup_internal(sess->phone);1070 async_hangup_internal(sess->phone); 1074 1071 1075 1072 while (!list_empty(&sess->exch_list)) { … … 1087 1084 1088 1085 fibril_mutex_unlock(&async_sess_mutex); 1089 1090 return rc;1091 1086 } 1092 1087 -
uspace/lib/c/include/async.h
r698ce34c r622e7c9 282 282 extern errno_t async_connect_to_me(async_exch_t *, iface_t, sysarg_t, sysarg_t); 283 283 284 extern errno_tasync_hangup(async_sess_t *);284 extern void async_hangup(async_sess_t *); 285 285 286 286 extern async_exch_t *async_exchange_begin(async_sess_t *);
Note:
See TracChangeset
for help on using the changeset viewer.