Skip to content

Move Linux drivers and path utilities to oshi-common - #3134

Merged
dbwiddis merged 1 commit into
oshi:masterfrom
dbwiddis:linux-drivers
Apr 10, 2026
Merged

dbwiddis merged 1 commit into
oshi:masterfrom
dbwiddis:linux-drivers

Conversation

@dbwiddis

@dbwiddis dbwiddis commented Apr 10, 2026 •

Copy link
Copy Markdown
Member

Move non-native Linux drivers and path utility classes from oshi-core to oshi-common, enabling reuse by both oshi-core (JNA) and oshi-core-java25 (FFM) without code duplication.

Changes

Moved to oshi.util.linux (from oshi.util.platform.linux)

  • ProcPath, DevPath, SysPath (/proc, /dev, /sys filesystem path constants)

Moved to oshi.util.driver.linux (from oshi.driver.linux)

  • Devicetree, Dmidecode, Lshal, Lshw, Sysfs (pure Java Linux driver utilities)

Moved to oshi.util.driver.linux.proc (from oshi.driver.linux.proc)

  • CpuInfo, CpuStat, DiskStats, ProcessStat, UpTime (/proc filesystem drivers)

Kept in oshi-core (JNA dependencies)

  • oshi.driver.linux.Who — uses JNA UtmpxType
  • oshi.driver.linux.proc.Auxv — uses FileUtilJNA.readNativeLongFromBuffer

Module metadata

  • oshi-common module-info.java: added exports for oshi.util.linux, oshi.util.driver.linux, oshi.util.driver.linux.proc
  • oshi-core-java11 module-info.java: removed stale exports oshi.util.platform.linux
  • oshi-core-java25 module-info.java: removed stale exports oshi.util.platform.linux

Tests

  • Migrated 10 test files to oshi-common with updated package names
  • Rewrote CpuStatTest to use Runtime.getRuntime().availableProcessors() instead of SystemInfo (oshi-core only)
  • Added TestConstants.java to oshi-common test tree

Import updates

  • ~30 files across oshi-core, oshi-core-java25, and oshi-core-java11 updated to use new package paths

Notes

  • Package rename from oshi.util.platform.linux → oshi.util.linux is required by JPMS (no split packages across modules)
  • Driver rename from oshi.driver.linux → oshi.util.driver.linux follows the convention established in the prior PR for Unix drivers
  • This is part of the bottom-up migration toward moving Linux HAL implementations to oshi-common

Summary by CodeRabbit

  • Refactor

    • Reorganized internal Linux utility packages and consolidated Linux path/constants into a single location; module exports updated accordingly.
    • Updated references across the codebase to use the new package layout (no behavioral changes).
  • Tests

    • Adjusted test configuration and added a small test utility constant; tests updated to the new package layout.

@codecov

codecov Bot commented Apr 10, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.74%. Comparing base (6a0acb6) to head (b60eb48).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3134      +/-   ##
============================================
+ Coverage     61.05%   61.74%   +0.68%     
  Complexity       12       12              
============================================
  Files            39       39              
  Lines          2329     2329              
  Branches        407      407              
============================================
+ Hits           1422     1438      +16     
+ Misses          789      771      -18     
- Partials        118      120       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@coderabbitai

coderabbitai Bot commented Apr 10, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0fb835db-8fbe-4aff-a733-c6658de1fa0a

📥 Commits

Reviewing files that changed from the base of the PR and between eef7cc4 and b60eb48.

📒 Files selected for processing (61)
  • CHANGELOG.md
  • oshi-common/src/main/java/module-info.java
  • oshi-common/src/main/java/oshi/util/driver/linux/Devicetree.java
  • oshi-common/src/main/java/oshi/util/driver/linux/Dmidecode.java
  • oshi-common/src/main/java/oshi/util/driver/linux/Lshal.java
  • oshi-common/src/main/java/oshi/util/driver/linux/Lshw.java
  • oshi-common/src/main/java/oshi/util/driver/linux/Sysfs.java
  • oshi-common/src/main/java/oshi/util/driver/linux/package-info.java
  • oshi-common/src/main/java/oshi/util/driver/linux/proc/CpuInfo.java
  • oshi-common/src/main/java/oshi/util/driver/linux/proc/CpuStat.java
  • oshi-common/src/main/java/oshi/util/driver/linux/proc/DiskStats.java
  • oshi-common/src/main/java/oshi/util/driver/linux/proc/ProcessStat.java
  • oshi-common/src/main/java/oshi/util/driver/linux/proc/UpTime.java
  • oshi-common/src/main/java/oshi/util/driver/linux/proc/package-info.java
  • oshi-common/src/main/java/oshi/util/linux/DevPath.java
  • oshi-common/src/main/java/oshi/util/linux/ProcPath.java
  • oshi-common/src/main/java/oshi/util/linux/SysPath.java
  • oshi-common/src/main/java/oshi/util/linux/package-info.java
  • oshi-common/src/test/java/module-info.test
  • oshi-common/src/test/java/oshi/TestConstants.java
  • oshi-common/src/test/java/oshi/util/driver/linux/DevicetreeTest.java
  • oshi-common/src/test/java/oshi/util/driver/linux/DmidecodeTest.java
  • oshi-common/src/test/java/oshi/util/driver/linux/LshalTest.java
  • oshi-common/src/test/java/oshi/util/driver/linux/LshwTest.java
  • oshi-common/src/test/java/oshi/util/driver/linux/SysfsTest.java
  • oshi-common/src/test/java/oshi/util/driver/linux/proc/CpuInfoTest.java
  • oshi-common/src/test/java/oshi/util/driver/linux/proc/CpuStatTest.java
  • oshi-common/src/test/java/oshi/util/driver/linux/proc/DiskStatsTest.java
  • oshi-common/src/test/java/oshi/util/driver/linux/proc/ProcessStatTest.java
  • oshi-common/src/test/java/oshi/util/driver/linux/proc/UpTimeTest.java
  • oshi-core-java11/src/main/java/module-info.java
  • oshi-core-java25/src/main/java/module-info.java
  • oshi-core-java25/src/main/java/oshi/hardware/platform/linux/LinuxCentralProcessorFFM.java
  • oshi-core-java25/src/main/java/oshi/hardware/platform/linux/LinuxHWDiskStoreFFM.java
  • oshi-core-java25/src/main/java/oshi/hardware/platform/linux/LinuxLogicalVolumeGroupFFM.java
  • oshi-core-java25/src/main/java/oshi/hardware/platform/linux/LinuxNetworkIFFFM.java
  • oshi-core-java25/src/main/java/oshi/software/os/linux/LinuxOperatingSystemFFM.java
  • oshi-core/src/main/java/oshi/driver/linux/proc/Auxv.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxBaseboard.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxCentralProcessor.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxComputerSystem.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxFirmware.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxGlobalMemory.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxHWDiskStore.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxHWDiskStoreJNA.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxLogicalVolumeGroup.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxLogicalVolumeGroupJNA.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxNetworkIF.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxNetworkIFJNA.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxPowerSource.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxSensors.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxSoundCard.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxVirtualMemory.java
  • oshi-core/src/main/java/oshi/software/os/linux/LinuxFileSystem.java
  • oshi-core/src/main/java/oshi/software/os/linux/LinuxInternetProtocolStats.java
  • oshi-core/src/main/java/oshi/software/os/linux/LinuxOSProcess.java
  • oshi-core/src/main/java/oshi/software/os/linux/LinuxOSThread.java
  • oshi-core/src/main/java/oshi/software/os/linux/LinuxOperatingSystem.java
  • oshi-core/src/main/java/oshi/software/os/linux/LinuxOperatingSystemJNA.java
  • oshi-core/src/main/java/oshi/software/os/unix/solaris/SolarisOperatingSystem.java
  • oshi-core/src/main/java/oshi/util/platform/linux/package-info.java
💤 Files with no reviewable changes (3)
  • oshi-core/src/main/java/oshi/util/platform/linux/package-info.java
  • oshi-core-java25/src/main/java/module-info.java
  • oshi-core-java11/src/main/java/module-info.java
✅ Files skipped from review due to trivial changes (35)
  • oshi-core-java25/src/main/java/oshi/software/os/linux/LinuxOperatingSystemFFM.java
  • oshi-common/src/test/java/oshi/util/driver/linux/proc/DiskStatsTest.java
  • oshi-core-java25/src/main/java/oshi/hardware/platform/linux/LinuxNetworkIFFFM.java
  • oshi-common/src/main/java/oshi/util/linux/package-info.java
  • oshi-common/src/main/java/oshi/util/driver/linux/proc/UpTime.java
  • oshi-core-java25/src/main/java/oshi/hardware/platform/linux/LinuxLogicalVolumeGroupFFM.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxLogicalVolumeGroup.java
  • oshi-common/src/main/java/oshi/util/driver/linux/Devicetree.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxSoundCard.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxLogicalVolumeGroupJNA.java
  • oshi-common/src/main/java/oshi/util/linux/SysPath.java
  • oshi-common/src/main/java/oshi/util/driver/linux/Lshal.java
  • oshi-core/src/main/java/oshi/software/os/unix/solaris/SolarisOperatingSystem.java
  • oshi-common/src/main/java/oshi/util/driver/linux/proc/package-info.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxSensors.java
  • oshi-common/src/test/java/oshi/util/driver/linux/LshalTest.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxFirmware.java
  • oshi-common/src/test/java/oshi/TestConstants.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxNetworkIF.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxBaseboard.java
  • oshi-common/src/main/java/module-info.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxHWDiskStoreJNA.java
  • oshi-common/src/test/java/oshi/util/driver/linux/SysfsTest.java
  • oshi-core-java25/src/main/java/oshi/hardware/platform/linux/LinuxCentralProcessorFFM.java
  • oshi-core/src/main/java/oshi/software/os/linux/LinuxOperatingSystemJNA.java
  • oshi-common/src/test/java/module-info.test
  • oshi-common/src/test/java/oshi/util/driver/linux/proc/ProcessStatTest.java
  • oshi-core/src/main/java/oshi/software/os/linux/LinuxOSThread.java
  • oshi-common/src/main/java/oshi/util/driver/linux/package-info.java
  • CHANGELOG.md
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxHWDiskStore.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxCentralProcessor.java
  • oshi-core/src/main/java/oshi/software/os/linux/LinuxOperatingSystem.java
  • oshi-common/src/main/java/oshi/util/linux/ProcPath.java
  • oshi-core/src/main/java/oshi/software/os/linux/LinuxOSProcess.java
🚧 Files skipped from review as they are similar to previous changes (22)
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxNetworkIFJNA.java
  • oshi-common/src/main/java/oshi/util/linux/DevPath.java
  • oshi-common/src/test/java/oshi/util/driver/linux/LshwTest.java
  • oshi-common/src/test/java/oshi/util/driver/linux/DevicetreeTest.java
  • oshi-common/src/main/java/oshi/util/driver/linux/Lshw.java
  • oshi-core-java25/src/main/java/oshi/hardware/platform/linux/LinuxHWDiskStoreFFM.java
  • oshi-common/src/main/java/oshi/util/driver/linux/Dmidecode.java
  • oshi-common/src/test/java/oshi/util/driver/linux/DmidecodeTest.java
  • oshi-common/src/test/java/oshi/util/driver/linux/proc/CpuInfoTest.java
  • oshi-core/src/main/java/oshi/driver/linux/proc/Auxv.java
  • oshi-common/src/main/java/oshi/util/driver/linux/Sysfs.java
  • oshi-core/src/main/java/oshi/software/os/linux/LinuxInternetProtocolStats.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxComputerSystem.java
  • oshi-common/src/test/java/oshi/util/driver/linux/proc/UpTimeTest.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxPowerSource.java
  • oshi-common/src/main/java/oshi/util/driver/linux/proc/ProcessStat.java
  • oshi-common/src/main/java/oshi/util/driver/linux/proc/CpuInfo.java
  • oshi-common/src/test/java/oshi/util/driver/linux/proc/CpuStatTest.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxVirtualMemory.java
  • oshi-common/src/main/java/oshi/util/driver/linux/proc/DiskStats.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxGlobalMemory.java
  • oshi-common/src/main/java/oshi/util/driver/linux/proc/CpuStat.java
📜 Recent review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: Analyze (java)
  • GitHub Check: Lint (Spotless, Checkstyle, ForbiddenAPIs, Javadoc)
  • GitHub Check: Test JDK 25, macos-latest
🧰 Additional context used
🧠 Learnings (4)
📓 Common learnings
Learnt from: dbwiddis
Repo: oshi/oshi PR: 3121
File: oshi-core/src/main/java/oshi/software/os/linux/LinuxOperatingSystem.java:53-53
Timestamp: 2026-04-06T04:45:51.516Z
Learning: In the oshi/oshi project, the public API is strictly limited to interfaces and classes in the `oshi`, `oshi.hardware`, and `oshi.software.os` packages. All platform-specific code under subpackages like `oshi.software.os.linux`, `oshi.hardware.platform.linux`, etc., is considered implementation detail — not public API. Do not flag changes to platform-specific classes (e.g., making `LinuxOperatingSystem` abstract, narrowing constructor visibility, adding abstract methods) as public API breaks.
Learnt from: dbwiddis
Repo: oshi/oshi PR: 3014
File: oshi-core-java11/src/main/java/module-info.java:10-17
Timestamp: 2026-03-29T20:01:06.452Z
Learning: In the oshi project, `oshi-core-java25/src/main/java/module-info.java` intentionally does NOT export `oshi.util.platform.unix.freebsd`, `oshi.util.platform.unix.openbsd`, or `oshi.util.platform.unix.solaris`, because the FFM (Foreign Function & Memory) implementation only supports Windows, macOS, and Linux. This differs from `oshi-core-java11/src/main/java/module-info.java` which exports all Unix platform packages. The asymmetry is by design.
📚 Learning: 2026-04-06T04:45:47.644Z
Learnt from: dbwiddis
Repo: oshi/oshi PR: 3121
File: oshi-core/src/main/java/oshi/software/os/linux/LinuxOperatingSystem.java:53-53
Timestamp: 2026-04-06T04:45:47.644Z
Learning: In the oshi/oshi project, only interfaces and classes in the root packages `oshi`, `oshi.hardware`, and `oshi.software.os` are considered the public API. Code in subpackages that represent specific implementations/platforms (e.g., `oshi.software.os.linux`, `oshi.hardware.platform.linux`, and similar subpackages) is implementation detail. When reviewing, do not treat changes to classes in these platform-specific subpackages as public API breaks (for example: making `LinuxOperatingSystem` abstract, narrowing constructor visibility, or adding/removing abstract methods should not be flagged as breaking public API).

Applied to files:

  • oshi-core/src/main/java/oshi/software/os/linux/LinuxFileSystem.java
📚 Learning: 2026-03-29T20:01:06.452Z
Learnt from: dbwiddis
Repo: oshi/oshi PR: 3014
File: oshi-core-java11/src/main/java/module-info.java:10-17
Timestamp: 2026-03-29T20:01:06.452Z
Learning: In the oshi project, `oshi-core-java25/src/main/java/module-info.java` intentionally does NOT export `oshi.util.platform.unix.freebsd`, `oshi.util.platform.unix.openbsd`, or `oshi.util.platform.unix.solaris`, because the FFM (Foreign Function & Memory) implementation only supports Windows, macOS, and Linux. This differs from `oshi-core-java11/src/main/java/module-info.java` which exports all Unix platform packages. The asymmetry is by design.

Applied to files:

  • oshi-core/src/main/java/oshi/software/os/linux/LinuxFileSystem.java
📚 Learning: 2026-04-05T05:40:45.797Z
Learnt from: dbwiddis
Repo: oshi/oshi PR: 3117
File: oshi-core-java25/src/main/java/oshi/hardware/platform/linux/LinuxPowerSourceFFM.java:62-65
Timestamp: 2026-04-05T05:40:45.797Z
Learning: In OSHI's Linux FFM and JNA udev code, a null guard on `udev_enumerate_new()` is intentionally absent and should not be flagged. This is consistent across all four FFM classes (LinuxPowerSourceFFM, LinuxHWDiskStoreFFM, LinuxLogicalVolumeGroupFFM, LinuxUsbDeviceFFM) and the JNA implementation (which also does not guard `enumerateNew()` for null). Per libudev semantics, `udev_enumerate_new()` only returns NULL when udev itself is broken (e.g. OOM), so a successful `udev_new()` (which is guarded) implies `udev_enumerate_new()` will succeed. Adding a null guard would be both redundant and inconsistent with the established pattern.

Applied to files:

  • oshi-core/src/main/java/oshi/software/os/linux/LinuxFileSystem.java
🔇 Additional comments (1)
oshi-core/src/main/java/oshi/software/os/linux/LinuxFileSystem.java (1)

29-30: Import migration looks correct.

Line 29 and Line 30 correctly switch to oshi.util.linux.*, and the existing DevPath/ProcPath usages in this class remain valid after the package move.


📝 Walkthrough

Walkthrough

This change moves Linux driver and path-constant classes into oshi-common: oshi.driver.linux → oshi.util.driver.linux and oshi.util.platform.linux → oshi.util.linux, updates imports across core modules, adjusts module exports to expose the new packages, and updates related tests and package docs.

Changes

Cohort / File(s) Summary
Module Exports
oshi-common/src/main/java/module-info.java, oshi-core-java11/src/main/java/module-info.java, oshi-core-java25/src/main/java/module-info.java
Added exports for oshi.util.driver.linux, oshi.util.driver.linux.proc, and oshi.util.linux in oshi-common; removed exports oshi.util.platform.linux from oshi-core modules.
Linux Driver Utilities (moved)
oshi-common/src/main/java/oshi/util/driver/linux/{Devicetree,Dmidecode,Lshal,Lshw,Sysfs}.java, .../package-info.java
Relocated classes from oshi.driver.linux → oshi.util.driver.linux; updated SysPath/ProcPath imports to new oshi.util.linux package; added package-level Javadoc.
Linux Driver Proc Utilities (moved)
oshi-common/src/main/java/oshi/util/driver/linux/proc/{CpuInfo,CpuStat,DiskStats,ProcessStat,UpTime}.java, .../package-info.java
Relocated oshi.driver.linux.proc → oshi.util.driver.linux.proc; updated ProcPath static imports to oshi.util.linux; added package Javadoc.
Linux Path Constants (moved)
oshi-common/src/main/java/oshi/util/linux/{DevPath,ProcPath,SysPath}.java, .../package-info.java
Moved path-constant classes from oshi.util.platform.linux → oshi.util.linux; updated copyright years and added package Javadoc.
Core platform & OS callers (imports updated)
oshi-core/**/src/main/java/oshi/.../platform/linux/*, oshi-core/src/main/java/oshi/software/os/linux/*, oshi-core/src/main/java/oshi/driver/linux/proc/Auxv.java, .../SolarisOperatingSystem.java
Updated many imports to reference oshi.util.driver.linux.* and oshi.util.linux.* instead of old packages; no logic changes besides minor formatting adjustments.
FFM/JNA implementations (imports updated)
oshi-core-java25/src/main/java/oshi/.../linux/*FFM.java, .../LinuxOperatingSystemFFM.java
Updated imports to use oshi.util.linux.* path constants and oshi.util.driver.linux.* where applicable.
Package docs removal
oshi-core/src/main/java/oshi/util/platform/linux/package-info.java
Removed old package-info for oshi.util.platform.linux.
Tests & test config
oshi-common/src/test/java/module-info.test, oshi-common/src/test/java/oshi/TestConstants.java, oshi-common/src/test/java/oshi/util/driver/linux/*, .../proc/*
Added --add-opens entries for new packages in test JVM args; added oshi.TestConstants.UUID_REGEX; updated many test package declarations to new namespaces and some test simplifications.
Changelog
CHANGELOG.md
Added PR reference (#3134) to the changelog entry for 6.12.0.

Sequence Diagram(s)

(omitted — changes are package relocations and import updates without new multi-component control flow)

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Suggested reviewers

  • rohan-coder02

Poem

🐇 Hiccuping hops as packages rearrange,

Paths and drivers find a friendlier range.
Imports updated, tests join the chase,
The codebase hops to a tidier place.
— your rabbit dev, nibbling on change 🥕

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 37.50% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Move Linux drivers and path utilities to oshi-common' directly and clearly describes the main objective of the PR: moving non-native Linux driver and path utility classes from oshi-core to oshi-common for code reuse.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
✨ Simplify code
  • Create PR with simplified code

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Move non-native Linux drivers and path utility classes from oshi-core
to oshi-common, enabling reuse by oshi-core-java25 (FFM) without
duplicating code.

Moved to oshi-common oshi.util.linux (from oshi.util.platform.linux):
- ProcPath, DevPath, SysPath

Moved to oshi-common oshi.util.driver.linux (from oshi.driver.linux):
- Devicetree, Dmidecode, Lshal, Lshw, Sysfs

Moved to oshi-common oshi.util.driver.linux.proc (from
oshi.driver.linux.proc):
- CpuInfo, CpuStat, DiskStats, ProcessStat, UpTime

Kept in oshi-core (JNA dependencies):
- oshi.driver.linux.Who
- oshi.driver.linux.proc.Auxv

Updated imports in ~30 files across oshi-core, oshi-core-java25, and
oshi-core-java11. Migrated tests to oshi-common with updated packages.
Rewrote CpuStatTest to use Runtime.availableProcessors() instead of
SystemInfo (oshi-core only).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant