Skip to content

Commit fe450ee

Browse files
changbinduJonathan Corbet
authored andcommitted
Documentation: in_irq() cleanup
Replace the obsolete and ambiguos macro in_irq() with new macro in_hardirq(). Signed-off-by: Changbin Du <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Corbet <[email protected]>
1 parent f08fe9d commit fe450ee

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

Documentation/kernel-hacking/hacking.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ handler is never re-entered: if the same interrupt arrives, it is queued
7676
fast: frequently it simply acknowledges the interrupt, marks a 'software
7777
interrupt' for execution and exits.
7878

79-
You can tell you are in a hardware interrupt, because
80-
:c:func:`in_irq()` returns true.
79+
You can tell you are in a hardware interrupt, because in_hardirq() returns
80+
true.
8181

8282
.. warning::
8383

Documentation/kernel-hacking/locking.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,7 +1406,7 @@ bh
14061406
half will be running at any time.
14071407

14081408
Hardware Interrupt / Hardware IRQ
1409-
Hardware interrupt request. in_irq() returns true in a
1409+
Hardware interrupt request. in_hardirq() returns true in a
14101410
hardware interrupt handler.
14111411

14121412
Interrupt Context
@@ -1418,7 +1418,7 @@ SMP
14181418
(``CONFIG_SMP=y``).
14191419

14201420
Software Interrupt / softirq
1421-
Software interrupt handler. in_irq() returns false;
1421+
Software interrupt handler. in_hardirq() returns false;
14221422
in_softirq() returns true. Tasklets and softirqs both
14231423
fall into the category of 'software interrupts'.
14241424

Documentation/translations/it_IT/kernel-hacking/hacking.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ i gestori d'interruzioni devono essere veloci: spesso si limitano
9090
esclusivamente a notificare la presa in carico dell'interruzione,
9191
programmare una 'interruzione software' per l'esecuzione e quindi terminare.
9292

93-
Potete dire d'essere in una interruzione hardware perché :c:func:`in_irq()`
93+
Potete dire d'essere in una interruzione hardware perché in_hardirq()
9494
ritorna vero.
9595

9696
.. warning::

Documentation/translations/it_IT/kernel-hacking/locking.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,11 +1459,11 @@ contesto utente
14591459
che hardware.
14601460

14611461
interruzione hardware
1462-
Richiesta di interruzione hardware. in_irq() ritorna vero in un
1462+
Richiesta di interruzione hardware. in_hardirq() ritorna vero in un
14631463
gestore d'interruzioni hardware.
14641464

14651465
interruzione software / softirq
1466-
Gestore di interruzioni software: in_irq() ritorna falso;
1466+
Gestore di interruzioni software: in_hardirq() ritorna falso;
14671467
in_softirq() ritorna vero. I tasklet e le softirq sono entrambi
14681468
considerati 'interruzioni software'.
14691469

Documentation/translations/zh_CN/kernel-hacking/hacking.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
它将被排队(或丢弃)。因为它会关闭中断,所以处理程序必须很快:通常它只是
6969
确认中断,标记一个“软件中断”以执行并退出。
7070

71-
您可以通过 :c:func:`in_irq()` 返回真来判断您处于硬件中断状态。
71+
您可以通过 in_hardirq() 返回真来判断您处于硬件中断状态。
7272

7373
.. warning::
7474

0 commit comments

Comments
 (0)