Changes in uspace/drv/char/xtkbd/xtkbd.c [bd87ae0:e98fe28c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/xtkbd/xtkbd.c
rbd87ae0 re98fe28c 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.