Mutex requirements#146
Merged
Merged
Conversation
nashif
commented
Jun 25, 2026
Member
- requirements: correct Mutex umbrella requirement
- requirements: add missing Mutex software requirements
The single existing Mutex requirement (ZEP-SRS-6-1) was vague, embedded a parenthetical note in its statement, and had no parent link. Reword it to state the mutex's mutual-exclusion purpose, clean up the user story wording, and link it to the Mutex system requirement (ZEP-SYRS-13). The detailed mutex behavior (locking, unlocking, ownership, recursion, priority inheritance) is added in a separate change. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
The Mutex document previously contained only a single high-level requirement. Add eleven requirements (ZEP-SRS-6-2 .. ZEP-SRS-6-12) covering the implemented k_mutex behavior: definition (compile time, run time), locking (acquiring an unowned mutex, blocking on a mutex owned by another thread, lock timeout and timeout expiry), recursive locking by the owner, unlocking (by the owner and the error for a non-owner), and priority inheritance. The requirements reflect the currently implemented k_mutex API behavior following the Route 3s approach and link to the Mutex system parent (ZEP-SYRS-13). UIDs were generated with "strictdoc manage auto-uid". Signed-off-by: Anas Nashif <anas.nashif@intel.com>
parphane
approved these changes
Jul 23, 2026
parphane
left a comment
Collaborator
There was a problem hiding this comment.
Performed review:
- Agreed with change on "Mutex Kernel Object", this SW req is about Mutex. If we want a generic requirement, we should make one at system level.
- Properly traced to sys req ZEP-SYRS-13
- 4 functions covered by requirements, internal function logic defined without ambiguity
- No checklist violation https://docs.zephyrproject.org/latest/safety/safety_requirements/safety_requirements_checklist.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.