Page MenuHomeFreeBSD

sysctl: use correct types and names in sysctl_*sec_to_sbintime
ClosedPublic

Authored by glebius on Jan 26 2023, 10:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 17, 10:00 PM
Unknown Object (File)
Mon, May 11, 11:14 AM
Unknown Object (File)
Thu, May 7, 11:28 PM
Unknown Object (File)
Apr 29 2026, 2:44 AM
Unknown Object (File)
Apr 28 2026, 2:52 AM
Unknown Object (File)
Apr 21 2026, 2:43 AM
Unknown Object (File)
Apr 20 2026, 8:35 AM
Unknown Object (File)
Apr 14 2026, 8:05 PM
Subscribers

Details

Summary

The functions are intended to report kernel variables that are
stored as sbintime_t (pointed to by arg1) as human readable
nanoseconds or milliseconds (reported via sysctl_handle_64).
The variable types and names were reversed. I guess there is
no functional change here, as all types flipped around were
signed 64. Note that these function aren't used yet anywhere
in the kernel.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable