Execute a program in kernel space in Linux

后端 未结 6 1636
难免孤独
难免孤独 2021-01-02 23:45

If I want to execute a user program (not a kernel module) in Linux kernel space, what options do I have?

I have looked at KML(kernel mode linux) but that is specific

6条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-03 00:32

    User programs don't execute in kernel space - that's what makes them user programs.

    If you want to execute code in kernel space you have two options: build it in to the kernel, or load it with a kernel module.

提交回复
热议问题