Changeset ab936440 in mainline for uspace/lib/c/generic/io/chardev.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/lib/c/generic/io/chardev.c
r7f7817a9 rab936440 91 91 * @param size Maximum number of bytes to read 92 92 * @param nread Place to store actual number of bytes read 93 * @param flags @c chardev_f_nonblock to return immediately even if no 94 * bytes are available 93 95 * 94 96 * @return EOK on success or non-zero error code 95 97 */ 96 errno_t chardev_read(chardev_t *chardev, void *buf, size_t size, size_t *nread) 98 errno_t chardev_read(chardev_t *chardev, void *buf, size_t size, size_t *nread, 99 chardev_flags_t flags) 97 100 { 98 101 async_exch_t *exch = async_exchange_begin(chardev->sess); … … 104 107 105 108 ipc_call_t answer; 106 aid_t req = async_send_ 0(exch, CHARDEV_READ, &answer);109 aid_t req = async_send_1(exch, CHARDEV_READ, flags, &answer); 107 110 errno_t rc = async_data_read_start(exch, buf, size); 108 111 async_exchange_end(exch);
Note:
See TracChangeset
for help on using the changeset viewer.