Page MenuHomeFreeBSD

Correct CTLTYPE of SYSCTL_SBINTIME_MSEC etc
ClosedPublic

Authored by cperciva on Mar 31 2025, 4:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 7, 5:39 AM
Unknown Object (File)
Thu, Nov 27, 10:10 AM
Unknown Object (File)
Sun, Nov 23, 8:18 AM
Unknown Object (File)
Thu, Nov 20, 5:53 AM
Unknown Object (File)
Nov 7 2025, 12:00 PM
Unknown Object (File)
Nov 4 2025, 4:07 PM
Unknown Object (File)
Oct 28 2025, 5:28 PM
Unknown Object (File)
Oct 26 2025, 8:17 PM
Subscribers
None

Details

Summary

These should be CTLTYPE_S64, not CTLTYPE_INT, since they handle 64-bit
values.

Fixes: 003ffd57fee1 ("Add sysctl_usec_to_sbintime [...]")
MFC after: 2 weeks
Sponsored by: Amazon

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 63219
Build 60103: arc lint + arc unit

Event Timeline

cperciva created this revision.

I have similar changes in my tree... Or it appears I do...

But this doesn't matter to iosched: the size here only determines the size of the time interval that can be specified. iosched specifies in the 1-3 digit microseconds, while the range is up to 25 seconds. And the msec one has days of range. It's a good change none-the-less, though.

This revision is now accepted and ready to land.Apr 2 2025, 3:48 PM
This revision was automatically updated to reflect the committed changes.