在Linux内核空间执行程序 [英] Execute a program in kernel space in Linux

查看:34
本文介绍了在Linux内核空间执行程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我想在 Linux 内核空间中执行用户程序(而不是内核模块),我有哪些选择?

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

我已经看过 KML(内核模式 linux),但这是特定于 IA-32 架构的.我想要一个跨平台的解决方案,可以在嵌入式 linux 系统上工作.

I have looked at KML(kernel mode linux) but that is specific to IA-32 architecture. I want a solution which is cross platform and can work on embedded linux systems.

推荐答案

用户程序在内核空间中执行 - 这就是使它们成为用户程序的原因.

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.

这篇关于在Linux内核空间执行程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆