MCPcopy Create free account
hub / github.com/acidanthera/VirtualSMC / readAccess

Method readAccess

Sensors/SMCProcessor/KeyImplementations.cpp:11–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include "SMCProcessor.hpp"
10
11SMC_RESULT TempPackage::readAccess() {
12 uint16_t *ptr = reinterpret_cast<uint16_t *>(data);
13 IOSimpleLockLock(cp->counterLock);
14 *ptr = VirtualSMCAPI::encodeIntSp(type, cp->counters.tjmax[package] - cp->counters.thermalStatusPackage[package]);
15 cp->quickReschedule();
16 IOSimpleLockUnlock(cp->counterLock);
17 return SmcSuccess;
18}
19
20SMC_RESULT TempCore::readAccess() {
21 uint16_t *ptr = reinterpret_cast<uint16_t *>(data);

Callers

nothing calls this directly

Calls 2

encodeFltFunction · 0.85
quickRescheduleMethod · 0.45

Tested by

no test coverage detected