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.
Details
Details
- Reviewers
markj imp kib - Commits
- rGbab38b44dd11: memdesc: Add a MEMDESC_VMPAGES descriptor type.
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
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. |