Page MenuHomeFreeBSD

uio: provide uioadvance()
ClosedPublic

Authored by glebius on Feb 10 2025, 10:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 5, 7:39 AM
Unknown Object (File)
Wed, Sep 24, 1:01 AM
Unknown Object (File)
Tue, Sep 23, 6:51 PM
Unknown Object (File)
Sep 17 2025, 12:42 AM
Unknown Object (File)
Sep 15 2025, 5:07 PM
Unknown Object (File)
Sep 4 2025, 2:25 PM
Unknown Object (File)
Sep 3 2025, 12:33 AM
Unknown Object (File)
Aug 30 2025, 1:37 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.