Page MenuHomeFreeBSD

uio: provide uioadvance()
ClosedPublic

Authored by glebius on Feb 10 2025, 10:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 5, 6:46 PM
Unknown Object (File)
Mon, Nov 3, 2:37 PM
Unknown Object (File)
Mon, Nov 3, 1:03 AM
Unknown Object (File)
Wed, Oct 29, 6:44 AM
Unknown Object (File)
Sun, Oct 26, 3:39 AM
Unknown Object (File)
Sat, Oct 25, 4:38 AM
Unknown Object (File)
Fri, Oct 24, 5:30 PM
Unknown Object (File)
Oct 5 2025, 7:39 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.