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)
Mon, Apr 27, 2:53 PM
Unknown Object (File)
Tue, Apr 21, 9:00 PM
Unknown Object (File)
Tue, Apr 21, 1:10 PM
Unknown Object (File)
Tue, Apr 7, 10:13 PM
Unknown Object (File)
Mon, Apr 6, 10:22 AM
Unknown Object (File)
Fri, Apr 3, 8:26 PM
Unknown Object (File)
Thu, Apr 2, 3:13 PM
Unknown Object (File)
Feb 26 2026, 1:49 PM
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