From 98201b85aaabfd1838d1c9727fe9613c8c025fb5 Mon Sep 17 00:00:00 2001 From: Andrew Kreimer Date: Fri, 4 Oct 2024 19:08:50 +0300 Subject: [PATCH] Fix typos via codespell atleast -> at least encouter -> encounter --- examples/chardev2.c | 2 +- lkmpg.tex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/chardev2.c b/examples/chardev2.c index 1be9290c..1d2fc92c 100644 --- a/examples/chardev2.c +++ b/examples/chardev2.c @@ -196,7 +196,7 @@ static struct file_operations fops = { /* Initialize the module - Register the character device */ static int __init chardev2_init(void) { - /* Register the character device (atleast try) */ + /* Register the character device (at least try) */ int ret_val = register_chrdev(MAJOR_NUM, DEVICE_NAME, &fops); /* Negative values signify an error */ diff --git a/lkmpg.tex b/lkmpg.tex index 56c8b36a..7320d0f0 100644 --- a/lkmpg.tex +++ b/lkmpg.tex @@ -1905,7 +1905,7 @@ \subsection{Interrupt Handlers} The flags can be used for 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. -It should be noted that in some materials, you may encouter 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|. Those are the the IRQ flags in the older kernels. They have been removed completely.