Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default value parameter to read_sysfs #327

Merged
merged 2 commits into from
Nov 25, 2024

Conversation

joelsmithTT
Copy link
Contributor

Issue

#326

Description

For some reason, a kernel I booted on a RISC-V dev board didn't have the numa_node entry in sysfs -- this commit fixes the assumption that this file will always exist.

List of the changes

Adds function for reading from sysfs with a default return value if the read fails.

Testing

Manual

API Changes

There are no API changes in this PR.

For some reason, a kernel I booted on a RISC-V dev board didn't have the
`numa_node` entry in sysfs -- this commit fixes the assumption that this
file will always exist.
@joelsmithTT joelsmithTT enabled auto-merge (squash) November 25, 2024 16:17
@joelsmithTT joelsmithTT merged commit c8311e8 into main Nov 25, 2024
9 of 12 checks passed
@joelsmithTT joelsmithTT deleted the joelsmith/joelsmith/numa-fixup branch November 25, 2024 16:19
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