diff options
| author | riastradh <riastradh@NetBSD.org> | 2023-05-22 14:07:24 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2023-05-22 14:07:24 +0000 |
| commit | bc87ececf2bf392029c39dd8f8a3eb04c872f233 (patch) | |
| tree | e8c3d11d7bce19923abcc82f81a22e3e91121f50 /sys/dev | |
| parent | b36f7ff099d821017af17e1b03ed9517fbb01169 (diff) | |
uiomove(9): Add uiopeek/uioskip operations.
This allows a caller to grab some data, consume part of it, and
atomically update the uio with only the amount it consumed. This
way, the caller can use a buffer of a size that doesn't depend on how
much it will actually consume, which it may not know in advance --
e.g., because it depends on how much an underlying hardware tty
device will accept before it decides it has had too much.
Proposed on tech-kern:
https://mail-index.netbsd.org/tech-kern/2023/05/09/msg028883.html
(Opinions were divided between `uioadvance' and `uioskip'. I stuck
with `uioskip' because that was less work for me.)
Diffstat (limited to 'sys/dev')
0 files changed, 0 insertions, 0 deletions
