-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
enhance k_mutex to be ISR safe #25678
Comments
Might be worth reviewing https://www.kernel.org/doc/html/latest/locking/rt-mutex-design.html as we look to refactor |
By the way before we do this, I would like to see some examples of precedent in other RTOSes. This really seems an odd use-case to me. |
#8496 would not give you the priority inheritance feature, it will just wrap current semaphores. |
Based on the discussion above, we should not pursue this. |
Is your enhancement proposal related to a problem? Please describe.
We currently forbid k_mutex APIs in ISRs, due to the way the code assumes that the operation is on the behalf of
_current
. In an ISR, _current is just the thread that was running when the ISR fired, it should have no basis in the logic of the lock/unlock operations.Describe the solution you'd like
Per @andyross we may be able to allow this with some work:
Describe alternatives you've considered
None yet.
The text was updated successfully, but these errors were encountered: