mirror of
https://github.com/sysprog21/lkmpg.git
synced 2024-11-22 06:26:02 +08:00
Fix typos via codespell
atleast -> at least encouter -> encounter
This commit is contained in:
parent
47663d6aa1
commit
98201b85aa
|
@ -196,7 +196,7 @@ static struct file_operations fops = {
|
||||||
/* Initialize the module - Register the character device */
|
/* Initialize the module - Register the character device */
|
||||||
static int __init chardev2_init(void)
|
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);
|
int ret_val = register_chrdev(MAJOR_NUM, DEVICE_NAME, &fops);
|
||||||
|
|
||||||
/* Negative values signify an error */
|
/* Negative values signify an error */
|
||||||
|
|
|
@ -1905,7 +1905,7 @@ How many IRQs there are is hardware-dependent.
|
||||||
|
|
||||||
The flags can be used for specify behaviors of the IRQ.
|
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.
|
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|.
|
For example, the \cpp|SA_SHIRQ| and the \cpp|SA_INTERRUPT|.
|
||||||
Those are the the IRQ flags in the older kernels.
|
Those are the the IRQ flags in the older kernels.
|
||||||
They have been removed completely.
|
They have been removed completely.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user