Skip to content

Clarify usage differences between spinlock functions #294

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

Merged
merged 1 commit into from
Apr 4, 2025

Conversation

eleanorLYJ
Copy link
Contributor

@eleanorLYJ eleanorLYJ commented Apr 3, 2025

Explain the behavior and use cases of spin_lock(), spin_lock_irq(), , spin_lock_irqsave() and spin_lock_bh().

Summary by Bito

This pull request enhances the documentation for spinlock functions in the Linux kernel, clarifying the differences and use cases for spin_lock(), spin_lock_irq(), spin_lock_irqsave(), and spin_lock_bh(). These improvements aim to provide better guidance for developers in real-time Linux environments.

Unit tests added: False

Estimated effort to review (1-5, lower is better): 2

Copy link
Contributor

@jserv jserv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add some LWN and/or Linux kernel documentation for spinlock descriptions.

Explain the behavior and use cases of spin_lock(), spin_lock_irq(),
, spin_lock_irqsave() and spin_lock_bh().
@jserv jserv merged commit c2162ec into sysprog21:master Apr 4, 2025
1 check passed
@jserv
Copy link
Contributor

jserv commented Apr 4, 2025

Thank @eleanorLYJ for contributing!

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