Changeset ab936440 in mainline for uspace/drv/char/i8042/i8042.c
- Timestamp:
- 2019-02-12T20:42:42Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f31ca47
- Parents:
- 7f7817a9 (diff), 4805495 (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. - git-author:
- Matthieu Riolo <matthieu.riolo@…> (2019-02-12 20:26:18)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-02-12 20:42:42)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/i8042/i8042.c
r7f7817a9 rab936440 67 67 68 68 static void i8042_char_conn(ipc_call_t *, void *); 69 static errno_t i8042_read(chardev_srv_t *, void *, size_t, size_t *); 69 static errno_t i8042_read(chardev_srv_t *, void *, size_t, size_t *, 70 chardev_flags_t); 70 71 static errno_t i8042_write(chardev_srv_t *, const void *, size_t, size_t *); 71 72 … … 385 386 */ 386 387 static errno_t i8042_read(chardev_srv_t *srv, void *dest, size_t size, 387 size_t *nread )388 size_t *nread, chardev_flags_t flags) 388 389 { 389 390 i8042_port_t *port = (i8042_port_t *)srv->srvs->sarg; … … 394 395 fibril_mutex_lock(&port->buf_lock); 395 396 396 while (circ_buf_nused(&port->cbuf) == 0) 397 while ((flags & chardev_f_nonblock) == 0 && 398 circ_buf_nused(&port->cbuf) == 0) 397 399 fibril_condvar_wait(&port->buf_cv, &port->buf_lock); 398 400
Note:
See TracChangeset
for help on using the changeset viewer.