简体   繁体   English

Linux驱动程序和Android驱动程序有什么区别

[英]what is the difference between Linux drivers and Android driver

As android kernel is a hacked version of linux kernel..由于 android 内核是 linux 内核的黑客版本..

So the way we write drivers for linux would that work in android or some modifications are to be done .?因此,我们为 linux 编写驱动程序的方式在 android 中是否有效,或者需要进行一些修改。?

There are some API differences between Android and Linux kernel drivers code, any drivers written for Android hardware platforms can not get merged into the main kernel tree because they have dependencies on code that only lives in Google's kernel tree, causing it to fail to build in the kernel.org tree. Android 和 Linux 内核驱动程序代码之间存在一些 API 差异,任何为 Android 硬件平台编写的驱动程序都无法合并到主内核树中,因为它们依赖于仅存在于 Google 内核树中的代码,导致无法构建kernel.org 树。

"Android and Linux are growing back together" would give you more insight to your question. “Android 和 Linux 正在一起成长”会让您更深入地了解您的问题。

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

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