简体   繁体   English

了解Linux内核驱动程序

[英]Understanding Linux Kernel drivers

While building Linux kernel from source, I noticed that it is also building some drivers (eg drivers/gpu/drm/i915 or nouveau etc). 从源代码构建Linux内核时,我注意到它也在构建一些驱动程序(例如,drivers / gpu / drm / i915或nouveau等)。 On the other hand, on my system I also have xserver-xorg-video-intel package installed (Ubuntu). 另一方面,在我的系统上,我还安装了xserver-xorg-video-intel软件包(Ubuntu)。 So the question is: how does the xserver-xorg-video-intel driver go with drivers/gpu/drm/i915 from kernel? 所以问题是:xser​​ver-xorg-video-intel驱动程序如何与内核中的drivers / gpu / drm / i915一起使用? Are they two separate things with different purpose (eg the second is for X11 only)? 它们是否是两个目的不同的独立事物(例如,第二个仅用于X11)?

Linux graphic stack is a wide and complex ecosystem. Linux图形堆栈是一个广泛而复杂的生态系统。

you have a general overview here : 在这里有一个总体概述:

or a more complete and technical one from Stephane Marchesin which is one of the nouveau hackers. 或是来自Stephane Marchesin的更完整和技术含量更高的 ,后者是新手黑客之一。

Basically, graphics toolkits (Qt, Gtk, efl, etc..) talk with Xorg. 基本上,图形工具包(Qt,Gtk,efl等)与Xorg对话。 XOrg use libdrm to interact with the kernel DRM infrastructure which stands upon and abstract video card drivers (nouveau, i915, ..). XOrg使用libdrm与位于其上的内核DRM基础架构和抽象视频卡驱动程序(nouveau,i915等)进行交互。

SVG

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM