Browse Source

Fix grammar in IRQ flag usage description

Replaced "for specify" with "to specify" in the explanation of
IRQ flags.
Cheng-Yang Chou 3 weeks ago
parent
commit
75071ec7e1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lkmpg.tex

+ 1 - 1
lkmpg.tex

@@ -1983,7 +1983,7 @@ This function receives the IRQ number, the name of the function, flags, a name f
 Usually there is a certain number of IRQs available.
 Usually there is a certain number of IRQs available.
 How many IRQs there are is hardware-dependent.
 How many IRQs there are is hardware-dependent.
 
 
-The flags can be used for specify behaviors of the IRQ.
+The flags can be used to specify behaviors of the IRQ.
 For example, use \cpp|IRQF_SHARED| to indicate you are willing to share the IRQ with other interrupt handlers (usually because a number of hardware devices sit on the same IRQ); use the \cpp|IRQF_ONESHOT| to indicate that the IRQ is not reenabled after the handler finished.
 For example, use \cpp|IRQF_SHARED| to indicate you are willing to share the IRQ with other interrupt handlers (usually because a number of hardware devices sit on the same IRQ); use the \cpp|IRQF_ONESHOT| to indicate that the IRQ is not reenabled after the handler finished.
 It should be noted that in some materials, you may encounter another set of IRQ flags named with the \cpp|SA| prefix.
 It should be noted that in some materials, you may encounter another set of IRQ flags named with the \cpp|SA| prefix.
 For example, the \cpp|SA_SHIRQ| and the \cpp|SA_INTERRUPT|.
 For example, the \cpp|SA_SHIRQ| and the \cpp|SA_INTERRUPT|.