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, Jan 22, 12:02 AM
Unknown Object (File)
Dec 13 2024, 4:39 AM
Unknown Object (File)
Nov 21 2024, 6:33 AM
Unknown Object (File)
Oct 3 2024, 6:12 AM
Unknown Object (File)
Oct 1 2024, 12:54 PM
Unknown Object (File)
Sep 27 2024, 7:35 PM
Unknown Object (File)
Sep 20 2024, 1:02 PM
Unknown Object (File)
Sep 14 2024, 12:18 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