Changes in uspace/drv/char/ns8250/ns8250.c [f2d88f3:4f87a85a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/ns8250/ns8250.c
rf2d88f3 r4f87a85a 246 246 * @param count The number of bytes to be read. 247 247 * @param nread Place to store number of bytes actually read 248 * @param flags @c chardev_f_nonblock not to block waiting for data249 * even if no data is available250 248 * 251 249 * @return EOK on success or non-zero error code 252 250 */ 253 static errno_t ns8250_read(chardev_srv_t *srv, void *buf, size_t count, size_t *nread, 254 chardev_flags_t flags) 251 static errno_t ns8250_read(chardev_srv_t *srv, void *buf, size_t count, size_t *nread) 255 252 { 256 253 ns8250_t *ns = srv_ns8250(srv); … … 264 261 265 262 fibril_mutex_lock(&ns->mutex); 266 while ((flags & chardev_f_none) == 0 && 267 buf_is_empty(&ns->input_buffer)) 263 while (buf_is_empty(&ns->input_buffer)) 268 264 fibril_condvar_wait(&ns->input_buffer_available, &ns->mutex); 269 265 while (!buf_is_empty(&ns->input_buffer) && pos < count) {
Note:
See TracChangeset
for help on using the changeset viewer.