怎么驱动成为操作系统的一部分? [英] how do drivers become parts of operating systems?

查看:133
本文介绍了怎么驱动成为操作系统的一部分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道,操作系统内核是由驱动程序,但如何驾驶成为操作系统的一部分?做内核编译本身,然后添加驱动程序并重新编译本身?或者是驱动器插件内核?有人告诉我,对于大多数操作系统,驱动程序实际上成了内核的一部分,但每当我编译C程序,它会变成一个普通的可执行

I know that OS kernels are made up of drivers, but how does the driver become a part of the os?, does the kernel decompile itself, and then add the driver and recompile itself?, or are the drivers plug-ins for the kernel?, someone told me that for most operating systems, the drivers actually become a part of the kernel, but whenever I compile a c program, it turns into an ordinary executable

推荐答案

该驱动程序架构完全取决于您的操作系统。对于计算机上运行(相对于嵌入式设备)大多数操作系统,以为司机插件为内核的是pretty准确得多。这就是说,有很多的老,小,这就需要你构建驱动程序作为内核的一部分不太复杂的操作系统 - 没有动态加载可能。这些天来,许多操作系统对用户模式驱动程序,这是永远不要在内核内存空间中运行的所有设备驱动程序的支持。

The driver architecture depends entirely on your operating system. For most operating systems running on computers (as opposed to embedded devices), thinking of drivers as 'plug-ins' for the kernel is pretty much accurate. That said, there are plenty of older, smaller, and less sophisticated operating systems which require you to build the driver in as part of the kernel - no dynamic loading possible. These days, several operating systems have support for "user-mode" drivers, which are device drivers that don't ever run in the kernel memory space at all.

这篇关于怎么驱动成为操作系统的一部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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