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)
Wed, Apr 23, 3:39 PM
Unknown Object (File)
Sun, Apr 20, 1:56 AM
Unknown Object (File)
Sat, Apr 19, 6:54 AM
Unknown Object (File)
Sat, Apr 19, 6:37 AM
Unknown Object (File)
Sat, Apr 19, 6:28 AM
Unknown Object (File)
Sat, Apr 19, 5:34 AM
Unknown Object (File)
Tue, Apr 8, 7:36 PM
Unknown Object (File)
Mar 23 2025, 1:21 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