Skip to contentSkip to conversation

Documentation: in_irq() cleanup

PATCH Superseded Changbin Du 2 participants 3 messages Aug 13, 2021 – Aug 14, 2021

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: in_irq() cleanup

Replace the obsolete and ambiguos macro in_irq() with new macro in_hardirq().

---
 Documentation/kernel-hacking/hacking.rst                    | 2 +-
 Documentation/kernel-hacking/locking.rst                    | 4 ++--
 Documentation/translations/it_IT/kernel-hacking/hacking.rst | 2 +-
 Documentation/translations/it_IT/kernel-hacking/locking.rst | 4 ++--
 Documentation/translations/zh_CN/kernel-hacking/hacking.rst | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)
Documentation/kernel-hacking/hacking.rst +1 -1
index df65c19aa7df..f514cec8e16b 100644
@@ -77,7 +77,7 @@ fast: frequently it simply acknowledges the interrupt, marks a 'software
 interrupt' for execution and exits.
 
 You can tell you are in a hardware interrupt, because
-:c:func:`in_irq()` returns true.
+:c:func:`in_hardirq()` returns true.
 
 .. warning::
 
Documentation/kernel-hacking/locking.rst +2 -2
index ed1284c6f078..94232ed1d592 100644
@@ -1406,7 +1406,7 @@ bh
   half will be running at any time.
 
 Hardware Interrupt / Hardware IRQ
-  Hardware interrupt request. in_irq() returns true in a
+  Hardware interrupt request. in_hardirq() returns true in a
   hardware interrupt handler.
 
 Interrupt Context
@@ -1418,7 +1418,7 @@ SMP
   (``CONFIG_SMP=y``).
 
 Software Interrupt / softirq
-  Software interrupt handler. in_irq() returns false;
+  Software interrupt handler. in_hardirq() returns false;
   in_softirq() returns true. Tasklets and softirqs both
   fall into the category of 'software interrupts'.
 
Documentation/translations/it_IT/kernel-hacking/hacking.rst +1 -1
index f6beb385b4ac..a2474e1f235e 100644
@@ -90,7 +90,7 @@ i gestori d'interruzioni devono essere veloci: spesso si limitano
 esclusivamente a notificare la presa in carico dell'interruzione,
 programmare una 'interruzione software' per l'esecuzione e quindi terminare.
 
-Potete dire d'essere in una interruzione hardware perché :c:func:`in_irq()`
+Potete dire d'essere in una interruzione hardware perché :c:func:`in_hardirq()`
 ritorna vero.
 
 .. warning::
Documentation/translations/it_IT/kernel-hacking/locking.rst +2 -2
index 1e7c84def369..1efb8293bf1f 100644
@@ -1459,11 +1459,11 @@ contesto utente
   che hardware.
 
 interruzione hardware
-  Richiesta di interruzione hardware. in_irq() ritorna vero in un
+  Richiesta di interruzione hardware. in_hardirq() ritorna vero in un
   gestore d'interruzioni hardware.
 
 interruzione software / softirq
-  Gestore di interruzioni software: in_irq() ritorna falso;
+  Gestore di interruzioni software: in_hardirq() ritorna falso;
   in_softirq() ritorna vero. I tasklet e le softirq sono entrambi
   considerati 'interruzioni software'.
 
Documentation/translations/zh_CN/kernel-hacking/hacking.rst +1 -1
index ab974faddecf..877921adb5bb 100644
@@ -68,7 +68,7 @@
 它将被排队(或丢弃)。因为它会关闭中断,所以处理程序必须很快:通常它只是
 确认中断,标记一个“软件中断”以执行并退出。
 
-您可以通过 :c:func:`in_irq()` 返回真来判断您处于硬件中断状态。
+您可以通过 :c:func:`in_hardirq()` 返回真来判断您处于硬件中断状态。
 
 .. warning::
 
Signature · 1 line
2.30.2
maintainer
#1 lore raw
Quoted 17 lines · Changbin Du

Replace the obsolete and ambiguos macro in_irq() with new macro in_hardirq().

---
 Documentation/kernel-hacking/hacking.rst                    | 2 +-
 Documentation/kernel-hacking/locking.rst                    | 4 ++--
 Documentation/translations/it_IT/kernel-hacking/hacking.rst | 2 +-
 Documentation/translations/it_IT/kernel-hacking/locking.rst | 4 ++--
 Documentation/translations/zh_CN/kernel-hacking/hacking.rst | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)
Documentation/kernel-hacking/hacking.rst +0 -0
index df65c19aa7df..f514cec8e16b 100644

Documentation/kernel-hacking/hacking.rst fast: frequently it simply acknowledges the interrupt, marks a 'software · line 80

Quoted 5 lines
Documentation/kernel-hacking/hacking.rst +1 -1
@@ -77,7 +77,7 @@ fast: frequently it simply acknowledges the interrupt, marks a 'software
 interrupt' for execution and exits.
 
 You can tell you are in a hardware interrupt, because
-:c:func:`in_irq()` returns true.
+:c:func:`in_hardirq()` returns true.

While you're in the neighborhood, can you please get rid of the :c:func:
markup? We've not needed that for some time now; simply saying in_hardirq() is sufficient.

Thanks,

jon

#2 lore raw
Quoted 21 lines · Jonathan Corbet
Quoted 19 lines · Changbin Du

Replace the obsolete and ambiguos macro in_irq() with new macro in_hardirq().

---
 Documentation/kernel-hacking/hacking.rst                    | 2 +-
 Documentation/kernel-hacking/locking.rst                    | 4 ++--
 Documentation/translations/it_IT/kernel-hacking/hacking.rst | 2 +-
 Documentation/translations/it_IT/kernel-hacking/locking.rst | 4 ++--
 Documentation/translations/zh_CN/kernel-hacking/hacking.rst | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)
Documentation/kernel-hacking/hacking.rst +0 -0
index df65c19aa7df..f514cec8e16b 100644
@@ -77,7 +77,7 @@ fast: frequently it simply acknowledges the interrupt, marks a 'software
 interrupt' for execution and exits.
 
Quoted 8 lines

Documentation/kernel-hacking/hacking.rst fast: frequently it simply acknowledges the interrupt, marks a 'software · line 80

Quoted 3 lines
Documentation/kernel-hacking/hacking.rst +1 -1
 You can tell you are in a hardware interrupt, because
-:c:func:`in_irq()` returns true.
+:c:func:`in_hardirq()` returns true.

While you're in the neighborhood, can you please get rid of the :c:func:
markup? We've not needed that for some time now; simply saying in_hardirq() is sufficient.

No problem, will updaate it soon.

Quoted 3 lines

Thanks,

jon

Signature · 2 lines
Cheers,
Changbin Du