Page MenuHomeFreeBSD

Fix OID format for `vm.swap_reserved` and `vm.swap_total`
ClosedPublic

Authored by ngie on Apr 11 2022, 12:35 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 7 2024, 2:52 PM
Unknown Object (File)
Jan 24 2024, 11:09 PM
Unknown Object (File)
Jan 14 2024, 8:30 AM
Unknown Object (File)
Jan 1 2024, 9:13 AM
Unknown Object (File)
Dec 20 2023, 6:38 AM
Unknown Object (File)
Sep 9 2023, 8:00 PM
Unknown Object (File)
Aug 5 2023, 11:22 AM
Unknown Object (File)
Aug 5 2023, 11:21 AM
Subscribers

Details

Summary

The correct OID format for CTLTYPE_U64 is QU (uquad_t), not A
(text expressed via char *).

This issue was noticed while doing an sysctl tree walk using a
sysctl(9) consumer that relies on the OID format to intuit what the
type should be for a given sysctl.

MFC after: 1 month
Sponsored by: DellEMC Isilon

Diff Detail

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