]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add support to read number of online CPUs on OpenBSD
authorOndřej Surý <ondrej@isc.org>
Fri, 20 Sep 2024 06:53:01 +0000 (08:53 +0200)
committerOndřej Surý <ondrej@isc.org>
Sat, 21 Sep 2024 10:38:33 +0000 (12:38 +0200)
commit31458d405adcc967e314d757024dc1aef346c7be
treee74a3766bae63666fe8e7bc9548f7ce72993b301
parent3a91c0a4e334aad9e1d2e1ff2e4c1e349527d0f1
Add support to read number of online CPUs on OpenBSD

The OpenBSD doesn't have sysctlbyname(), but sysctl() can be used to
read the number of online/available CPUs by reading following MIB(s):
[CTL_HW, HW_NCPUONLINE] with fallback to [CTL_HW, HW_NCPU].
lib/isc/os.c