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

support for linux version rpi 6.6 #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

djrepo
Copy link

@djrepo djrepo commented Oct 23, 2024

Starting from Linux kernel 5.6, the timespec type was replaced by timespec64
replace timespec usage with timespec64 in newer kernel versions to maintain compatibility and avoid potential issues related to the Year 2038 problem.
in newer kernel versions, getnstimeofday() has been deprecated, and it is recommended to use the ktime_get_real_ts64() function instead
method timespec_sub are deprecated in favor of timespec64_sub
ACCESS_ONCE macro has been deprecated in favor of the READ_ONCE and WRITE_ONCE macros
use timespec64_to_ns with the timespec64 structure to avoid issues with the deprecated timespec

@hvesalai
Copy link
Owner

hvesalai commented Nov 4, 2024

Hi, thank you for the PR. Somehow I had missed it completely.

Since I haven't been coding linux for some time, I'm wondering if this PR should be merged as is or if we should have the old version still available.

Could you modify the README.md to document which version of RPi and Linux you tested the changes with.

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