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
F109846537: D38217.diff
Mon, Feb 10, 7:11 AM
Unknown Object (File)
Sun, Feb 9, 7:57 AM
Unknown Object (File)
Fri, Jan 24, 5:19 PM
Unknown Object (File)
Jan 8 2025, 8:58 PM
Unknown Object (File)
Jan 8 2025, 8:58 PM
Unknown Object (File)
Jan 8 2025, 8:51 PM
Unknown Object (File)
Jan 8 2025, 12:07 AM
Unknown Object (File)
Jan 7 2025, 11:30 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