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)
Tue, Oct 22, 9:33 AM
Unknown Object (File)
Fri, Oct 11, 7:25 AM
Unknown Object (File)
Fri, Oct 11, 7:11 AM
Unknown Object (File)
Oct 1 2024, 2:12 AM
Unknown Object (File)
Sep 23 2024, 12:46 AM
Unknown Object (File)
Sep 20 2024, 7:53 AM
Unknown Object (File)
Sep 19 2024, 8:27 PM
Unknown Object (File)
Sep 16 2024, 11:47 AM
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