Changeset eaa0c3f in mainline for uspace/drv/char/xtkbd/xtkbd.c
- Timestamp:
- 2012-01-21T23:55:03Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c38e417
- Parents:
- 86c71de (diff), e98fe28c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/xtkbd/xtkbd.c
r86c71de reaa0c3f 206 206 assert(kbd); 207 207 assert(dev); 208 kbd-> input_sess = NULL;208 kbd->client_sess = NULL; 209 209 kbd->parent_sess = devman_parent_device_connect(EXCHANGE_SERIALIZE, 210 210 dev->handle, IPC_FLAG_BLOCKING); … … 296 296 if (key != 0) { 297 297 async_exch_t *exch = 298 async_exchange_begin(kbd-> input_sess);298 async_exchange_begin(kbd->client_sess); 299 299 if (!exch) { 300 300 ddf_msg(LVL_ERROR, 301 "Failed to create inputexchange.");301 "Failed creating exchange."); 302 302 continue; 303 303 } … … 352 352 if (sess == NULL) { 353 353 ddf_msg(LVL_WARN, 354 "Failed to create start inputsession");354 "Failed creating callback session"); 355 355 async_answer_0(icallid, EAGAIN); 356 356 break; 357 357 } 358 if (kbd-> input_sess == NULL) {359 kbd-> input_sess = sess;360 ddf_msg(LVL_DEBUG, "Set input session");358 if (kbd->client_sess == NULL) { 359 kbd->client_sess = sess; 360 ddf_msg(LVL_DEBUG, "Set client session"); 361 361 async_answer_0(icallid, EOK); 362 362 } else { 363 ddf_msg(LVL_ERROR, " Input session already set");363 ddf_msg(LVL_ERROR, "Client session already set"); 364 364 async_answer_0(icallid, ELIMIT); 365 365 }
Note:
See TracChangeset
for help on using the changeset viewer.