Skip to content

Commit b4c2bf1

Browse files
Improve formatting for softirqs explanation
Replaced plain text 'softirqs (software interrupts)' with \textbf{softirqs} (\textit{software interrupts}) for better emphasis. Co-authored-by: EricccTaiwan <[email protected]> Signed-off-by: Jordan Chiu <[email protected]>
1 parent e50123f commit b4c2bf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lkmpg.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1778,7 +1778,7 @@ \subsection{Spinlocks}
17781778
In contrast, \cpp|spin_lock_irqsave()| disables interrupts and also saves the interrupt state, ensuring that interrupts are restored to their previous state when the lock is released.
17791779
This makes \cpp|spin_lock_irqsave()| a safer option in scenarios where preserving the interrupt state is crucial.
17801780

1781-
Next, \cpp|spin_lock_bh()| disables softirqs (software interrupts) but allows hardware interrupts to continue.
1781+
Next, \cpp|spin_lock_bh()| disables \textbf{softirqs} (\textit{software interrupts}) but allows hardware interrupts to continue.
17821782
Unlike \cpp|spin_lock_irq()| and \cpp|spin_lock_irqsave()|, which disable both hardware and software interrupts, \cpp|spin_lock_bh()| is useful when hardware interrupts need to remain active.
17831783

17841784
For more information about spinlock usage and lock types, see the following resources:

0 commit comments

Comments
 (0)