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, Oct 13, 9:19 AM
Unknown Object (File)
Sun, Oct 12, 11:07 PM
Unknown Object (File)
Sun, Oct 12, 11:07 PM
Unknown Object (File)
Sun, Oct 12, 11:07 PM
Unknown Object (File)
Sun, Oct 12, 11:40 AM
Unknown Object (File)
Mon, Sep 29, 2:56 AM
Unknown Object (File)
Sep 16 2025, 3:10 AM
Unknown Object (File)
Sep 12 2025, 1:35 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