Page MenuHomeFreeBSD

memdesc: Add a MEMDESC_VMPAGES descriptor type.
ClosedPublic

Authored by jhb on Jul 13 2023, 9:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
May 2 2024, 12:47 PM
Unknown Object (File)
May 2 2024, 12:47 PM
Unknown Object (File)
May 2 2024, 11:08 AM
Unknown Object (File)
May 2 2024, 10:37 AM
Unknown Object (File)
Dec 28 2023, 1:43 PM
Unknown Object (File)
Dec 23 2023, 7:51 AM
Unknown Object (File)
Dec 20 2023, 6:53 AM
Unknown Object (File)
Dec 12 2023, 3:37 AM
Subscribers
None

Details

Summary

This memory descriptor is backed by an array of VM pages. This type
requires adding a new field to 'struct memdesc' to hold the offset
within the first page. For LP64 systems, this new field is added in
an existing padding hole so does not increase the size. For ILP32
systems, this grows 'struct memdesc' from 12 to 16 bytes.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Jul 13 2023, 9:45 PM
jhb created this revision.
This revision is now accepted and ready to land.Jul 13 2023, 11:11 PM
markj added inline comments.
sys/sys/memdesc.h
65

I'd put the two unions back-to-back in the struct, just because they're both fields which describe the buffer layout in some type-specific way.

jhb marked an inline comment as done.Jul 14 2023, 5:40 PM
This revision was automatically updated to reflect the committed changes.