Changeset 40abf56 in mainline for uspace/lib/c/generic/io/kio.c
- Timestamp:
- 2018-07-18T19:42:28Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9bde0d5
- Parents:
- 0b05082
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-18 19:05:08)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-18 19:42:28)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/kio.c
r0b05082 r40abf56 56 56 errno_t kio_write(const void *buf, size_t size, size_t *nwritten) 57 57 { 58 futex_lock(&kio_buffer.futex); 58 /* Using down/up instead of lock/unlock so we can print very early. */ 59 futex_down(&kio_buffer.futex); 59 60 60 61 const char *s = buf; … … 82 83 } 83 84 84 futex_u nlock(&kio_buffer.futex);85 futex_up(&kio_buffer.futex); 85 86 if (nwritten) 86 87 *nwritten = size;
Note:
See TracChangeset
for help on using the changeset viewer.