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)
Dec 23 2023, 1:48 AM
Unknown Object (File)
Nov 4 2023, 5:17 AM
Unknown Object (File)
Nov 3 2023, 12:11 AM
Unknown Object (File)
Nov 3 2023, 12:03 AM
Unknown Object (File)
Nov 2 2023, 11:52 PM
Unknown Object (File)
Aug 5 2023, 5:22 PM
Unknown Object (File)
Aug 5 2023, 5:21 PM
Unknown Object (File)
Aug 5 2023, 5:19 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

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

Event Timeline

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

Spacing is odd, is this just Phabricator misrendering?

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

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–152

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