Page MenuHomeFreeBSD

Add sglist functions for working with arrays of vmpages.
ClosedPublic

Authored by jhb on May 20 2016, 9:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 16 2025, 2:38 AM
Unknown Object (File)
Nov 11 2025, 4:12 AM
Unknown Object (File)
Nov 11 2025, 4:12 AM
Unknown Object (File)
Nov 11 2025, 12:19 AM
Unknown Object (File)
Nov 8 2025, 9:45 PM
Unknown Object (File)
Oct 17 2025, 6:51 PM
Unknown Object (File)
Oct 11 2025, 5:53 PM
Unknown Object (File)
Sep 20 2025, 7:38 PM
Subscribers

Details

Reviewers
kib
Group Reviewers
manpages
Summary

Add sglist functions for working with arrays of vmpages.

sglist_count_vmpages() determines the number of segments required for
a buffer described by an array of VM pages. sglist_append_vmpages()
adds the segments described by such a buffer to an sglist. The latter
function is largely pulled from sglist_append_bio(), and
sglist_append_bio() now uses sglist_append_vmpages().

Test Plan
  • booted a system to multiuser ok. Have also used the new functions in some pending aio_write zero-copy stuff for Chelsio TOE.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 3863
Build 3906: arc lint + arc unit

Event Timeline

jhb retitled this revision from to Add sglist functions for working with arrays of vmpages..
jhb updated this object.
jhb edited the test plan for this revision. (Show Details)
jhb added a reviewer: kib.
kib edited edge metadata.
This revision is now accepted and ready to land.May 20 2016, 10:13 PM