Page MenuHomeFreeBSD

uio: provide uioadvance()
ClosedPublic

Authored by glebius on Feb 10 2025, 10:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 20, 7:46 AM
Unknown Object (File)
Sat, May 16, 11:59 PM
Unknown Object (File)
Thu, Apr 30, 1:29 PM
Unknown Object (File)
Wed, Apr 29, 7:15 AM
Unknown Object (File)
Wed, Apr 29, 7:07 AM
Unknown Object (File)
Mon, Apr 27, 6:58 AM
Unknown Object (File)
Apr 23 2026, 8:09 AM
Unknown Object (File)
Apr 22 2026, 10:30 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.