MCPcopy Create free account
hub / github.com/Kitware/CMake / QueryAIXMemory

Method QueryAIXMemory

Source/kwsys/SystemInformation.cxx:4278–4292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4276}
4277
4278bool SystemInformationImplementation::QueryAIXMemory()
4279{
4280#if defined(_AIX) && defined(_SC_AIX_REALMEM)
4281 long c = sysconf(_SC_AIX_REALMEM);
4282 if (c <= 0) {
4283 return false;
4284 }
4285
4286 this->TotalPhysicalMemory = c / 1024;
4287
4288 return true;
4289#else
4290 return false;
4291#endif
4292}
4293
4294bool SystemInformationImplementation::QueryMemoryBySysconf()
4295{

Callers 1

RunMemoryCheckMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected