Page MenuHomeFreeBSD

Merge the md_page structs for AIM and Book-E into a single unioned struct
ClosedPublic

Authored by jhibbits on Jul 11 2018, 10:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 16, 2:25 AM
Unknown Object (File)
Fri, Sep 11, 11:49 AM
Unknown Object (File)
Tue, Sep 8, 10:54 PM
Unknown Object (File)
Tue, Sep 8, 10:00 PM
Unknown Object (File)
Fri, Aug 21, 11:59 PM
Unknown Object (File)
Aug 5 2026, 5:13 AM
Unknown Object (File)
Aug 4 2026, 2:16 AM
Unknown Object (File)
Jul 30 2026, 1:49 PM
Subscribers

Details

Summary

Ports like sysutils/lsof troll through kernel structures, and
therefore include kernel headers and all the dirty secrets involved. struct
vm_page includes the struct md_page inline, which currently is only defined
if AIM or BOOKE is defined. Thus, by default, sysutils/lsof cannot build,
due to the struct md_page having an incomplete type. Fix this by merging
the two struct definitions into an anonymous struct-union.

Compile-tested only.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable