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 26, 1:13 PM
Unknown Object (File)
Sat, Nov 22, 4:14 PM
Unknown Object (File)
Fri, Nov 21, 5:22 PM
Unknown Object (File)
Sun, Nov 16, 1:59 AM
Unknown Object (File)
Nov 5 2025, 6:46 PM
Unknown Object (File)
Nov 3 2025, 2:37 PM
Unknown Object (File)
Nov 3 2025, 1:03 AM
Unknown Object (File)
Oct 29 2025, 6:44 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.