Changes in uspace/drv/char/xtkbd/xtkbd.c [e98fe28c:bd87ae0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/xtkbd/xtkbd.c
re98fe28c rbd87ae0 206 206 assert(kbd); 207 207 assert(dev); 208 kbd-> client_sess = NULL;208 kbd->input_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-> client_sess);298 async_exchange_begin(kbd->input_sess); 299 299 if (!exch) { 300 300 ddf_msg(LVL_ERROR, 301 "Failed creatingexchange.");301 "Failed to create input exchange."); 302 302 continue; 303 303 } … … 352 352 if (sess == NULL) { 353 353 ddf_msg(LVL_WARN, 354 "Failed creating callbacksession");354 "Failed to create start input session"); 355 355 async_answer_0(icallid, EAGAIN); 356 356 break; 357 357 } 358 if (kbd-> client_sess == NULL) {359 kbd-> client_sess = sess;360 ddf_msg(LVL_DEBUG, "Set client session");358 if (kbd->input_sess == NULL) { 359 kbd->input_sess = sess; 360 ddf_msg(LVL_DEBUG, "Set input session"); 361 361 async_answer_0(icallid, EOK); 362 362 } else { 363 ddf_msg(LVL_ERROR, " Client session already set");363 ddf_msg(LVL_ERROR, "Input session already set"); 364 364 async_answer_0(icallid, ELIMIT); 365 365 }
Note:
See TracChangeset
for help on using the changeset viewer.