ohmu
·
2026-10-15
1#pragma once
2
3#include "fastfetch.h"
4#include "modules/physicalmemory/option.h"
5
6typedef struct FFPhysicalMemoryResult {
7 uint64_t size; // B
8 uint32_t maxSpeed; // MT/s
9 uint32_t runningSpeed; // MT/s
10 bool installed;
11 FFstrbuf type;
12 FFstrbuf formFactor;
13 FFstrbuf locator;
14 FFstrbuf partNumber;
15 FFstrbuf vendor;
16 FFstrbuf serial;
17 bool ecc;
18} FFPhysicalMemoryResult;
19
20const char* ffDetectPhysicalMemory(FFPhysicalMemoryOptions* options, FFlist* result); // list of FFPhysicalMemoryResult
21
22void FFPhysicalMemoryUpdateVendorString(FFPhysicalMemoryResult* device);