Apple System Management Controller (SMC) API in pure C from user space for Intel based Macs. The API works by talking to the AppleSMC.kext (kernel extension), the closed source driver for the SMC.
For a Swift based version see SMCKit.
System Management Controller"The System Management Controller (SMC) is an internal subsystem introduced by Apple Inc. with the introduction of their new Intel processor based machines in 2006. It takes over the functions of the SMU. The SMC manages thermal and power conditions to optimize the power and airflow while keeping audible noise to a minimum. Power consumption and temperature are monitored by the operating system, which communicates the necessary adjustments back to the SMC. The SMC makes the changes, slowing down or speeding up fans as necessary." -via Wikipedia
For more see:
Via clib
$ clib install beltex/libsmc
While the Swift based version of the API is preferred, there are several reasons why the C based one might be needed:
With credits to:
Handy I/O Kit references:
This project is under the GNU General Public License v2.0.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4