Page MenuHomeFreeBSD

uio: provide uioadvance()
ClosedPublic

Authored by glebius on Feb 10 2025, 10:21 PM.
Tags
None
Referenced Files
F153737577: D48920.id150802.diff
Thu, Apr 23, 8:09 AM
F153623687: D48920.id.diff
Wed, Apr 22, 10:30 AM
Unknown Object (File)
Sun, Apr 19, 5:24 AM
Unknown Object (File)
Sat, Apr 18, 10:12 PM
Unknown Object (File)
Sat, Apr 18, 8:10 PM
Unknown Object (File)
Fri, Apr 17, 9:41 AM
Unknown Object (File)
Sat, Apr 11, 9:45 PM
Unknown Object (File)
Thu, Apr 9, 7:54 AM
Subscribers

Details

Reviewers
markj
Group Reviewers
network
Commits
rGa1424b75453f: uio: provide uioadvance()
Summary

The function advances data pointers forward in given uio by offset. It
is planned to be used for interaction between aio(4) and unix(4).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/kern/subr_uio.c
297

Also add MPASS(uio->uio_resid >= 0) before.

I think we can put these assertions into the loop body too.

This revision was not accepted when it landed; it landed in state Needs Review.Apr 30 2025, 9:24 PM
This revision was automatically updated to reflect the committed changes.