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)
Sep 23 2024, 4:34 AM
Unknown Object (File)
Sep 22 2024, 10:21 PM
Unknown Object (File)
Sep 22 2024, 3:33 AM
Unknown Object (File)
Sep 21 2024, 5:07 PM
Unknown Object (File)
Sep 19 2024, 2:21 AM
Unknown Object (File)
Sep 18 2024, 3:57 AM
Unknown Object (File)
Sep 17 2024, 8:47 PM
Unknown Object (File)
Sep 17 2024, 4:48 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.