When should I write a Linux kernel module?

后端 未结 10 893
礼貌的吻别
礼貌的吻别 2021-02-02 08:05

Some people want to move code from user space to kernel space in Linux for some reason. A lot of times the reason seems to be that the code should have particularly high priorit

10条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-02 08:33

    If your people want really high priority, determinism, low latency etc, the right way to go is to use some real-time version of Linux (or other OS).

    Also look at the preemptible kernel options etc. Exactly what you should do depends on the requirements, but to put the code in kernel modules is not likely the right solution, unless you are interfacing some hardware directly.

提交回复
热议问题