Skip to content

Structure for FreeBSD preserving backwards compatibility - #100

Draft
kplindegaard wants to merge 6 commits into
masterfrom
feature/freebsd
Draft

kplindegaard wants to merge 6 commits into
masterfrom
feature/freebsd

Conversation

@kplindegaard

Copy link
Copy Markdown
Owner

An attempt to automatically detect OS and choose the right adaptations as implemented in a subclass called SMBusFreeBSD.

Design criteria:

  1. FreeBSD adaptations and adjustments should be fully separate from the Linux implementation. It is quite different, and the Linux implementation must not be full of ifs everywhere.
  2. It should be possible to use with SMBus(<busno>) as bus: as before without thinking about OS. This is the preferred usage pattern and just has to work.

Current concerns:

  • It's not 100% backwards compatible... :/
  • Penalty checking architecture every time a new bus class is instantiated.

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@sonarqubecloud

sonarqubecloud Bot commented Oct 7, 2026

Copy link
Copy Markdown

@kplindegaard

Copy link
Copy Markdown
Owner Author

PR #151 is expected to be merged into this to handle improved initialization and preservation of the API, meaning that current description will be outdated and hence should be updated when that PR is merged.

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.

2 participants