Page MenuHomeFreeBSD

linuxkpi: Add `freeram` and `freehigh` to `struct sysinfo`
ClosedPublic

Authored by dumbbell on Jan 2 2023, 9:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 17, 6:39 PM
Unknown Object (File)
Jan 14 2025, 5:30 AM
Unknown Object (File)
Jan 13 2025, 11:04 PM
Unknown Object (File)
Jan 1 2025, 10:35 AM
Unknown Object (File)
Nov 15 2024, 4:50 PM
Unknown Object (File)
Oct 19 2024, 3:22 AM
Unknown Object (File)
Oct 1 2024, 5:27 AM
Unknown Object (File)
Sep 28 2024, 1:39 PM

Details

Summary

The struct layout is modified with this commit because new fields are added in the middle, keeping original Linux order.

This is part of the update of the DRM drivers to Linux 5.13.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

sys/compat/linuxkpi/common/include/linux/mm.h
147–151

Spacing is odd, is this just Phabricator misrendering?

sys/compat/linuxkpi/common/include/linux/mm.h
147–151

Each line has the form:

<Tab>uint64_t totalram;<Tab>/* Comment */

So yeah, the tabs are rendered incorrectly. Should I use spaces between the field name and the comment?

sys/compat/linuxkpi/common/include/linux/mm.h
147–151

it's fine as long as it's consistent (with the existing file or at least with itself)

This revision is now accepted and ready to land.Jan 28 2023, 8:50 AM