Files
Reims-Go/internal/host/host_other.go
T
NwflowerandClaude Opus 5.5 c639682a88 refactor: remove unused functions and keep the codebase free of them
Delete functions that no product code calls, and fold "simple plus
WithOptions" pairs into the one signature callers actually use. Rename
the live macOS lifecycle functions that were labelled Legacy.

The architecture tests now share one source loader and reject functions
without a product caller and catalog messages nobody reads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 20:55:03 -07:00

51 lines
1.6 KiB
Go

//go:build !windows
package host
import (
"fmt"
"runtime"
)
// Inspect returns basic host facts on non-Windows dev machines (e.g., macOS).
func Inspect(dataRoot string) Report {
displays := probeDisplays()
primary := PrimaryDisplayOf(displays)
presets, rec := RecommendDisplayPresets(primary)
return Report{
OS: runtime.GOOS,
Arch: runtime.GOARCH,
LogicalCPUs: runtime.NumCPU(),
CPUTopology: DefaultCPUTopology(runtime.NumCPU()),
DataRoot: dataRoot,
Timezone: DetectHostTimezone(),
DeepBackingChains: InspectVMDiskChains(dataRoot),
WHPX: WHPXUnsupported,
Displays: displays,
PrimaryDisplay: primary,
RecommendedResolution: rec,
DisplayPresets: presets,
ProcessorScheduling: probeProcessorScheduling(),
Audio: ProbeAudio(),
}
}
func ConfigureVulkanDrivers() {}
// ProbeVulkanGPUs returns no adapters on hosts without Windows Vulkan probing.
func ProbeVulkanGPUs() []GPUInfo {
return nil
}
func SetProcessAffinityMask(pid uint32, mask uint64) error {
return fmt.Errorf("process CPU affinity is only supported on Windows (current OS: %s)", runtime.GOOS)
}
func GetProcessAffinityMask(pid uint32) (uint64, uint64, error) {
return 0, 0, fmt.Errorf("process CPU affinity is only supported on Windows (current OS: %s)", runtime.GOOS)
}
func DisableProcessPowerThrottling(pid uint32) error {
return fmt.Errorf("process power throttling control is only supported on Windows (current OS: %s)", runtime.GOOS)
}