request_irq和request_threaded_irq有什么区别?

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了request_irq和request_threaded_irq有什么区别?相关的知识,希望对你有一定的参考价值。

我理解request_irq我们可以调度一个work_queue,其中request_threaded_irq可以生成一个kthread作为中断的下半部分。但是不是工作队伍和kthread或多或少相同吗? request_threaded_irq如何比request_irq具有更好的延迟?

答案

这是一个实时内核线程,优先级为50

    static const struct sched_param param = {
        .sched_priority = MAX_USER_RT_PRIO/2,
    };

    t = kthread_create(irq_thread, new, "irq/%d-%s", irq,new->name);
    if (IS_ERR(t)) {
        ret = PTR_ERR(t);
        goto out_mput;
    }

    sched_setscheduler_nocheck(t, SCHED_FIFO, &param);

http://blog.csdn.net/leesagacious/article/details/78876848

以上是关于request_irq和request_threaded_irq有什么区别?的主要内容,如果未能解决你的问题,请参考以下文章