ChinaUnix.net
相关文章推荐:

linux设备驱动模型

Bus Types
总线类型
Definition
~~~~~~~~~~
struct bus_type {
 char   * name;
 struct subsystem subsys;
 struct kset  drivers;
 struct kset  devices;
 struct bus_attribute * bus_attrs;
 struct device_attribute * dev_attrs;
 struct driver_at...

by Knivo - 移动操作系统 - 2011-12-21 08:41:30 阅读(1371) 回复(0)

相关讨论

驱动,设备,类,总线这几个类的关系! 我一直迷惑!再就是对我们驱动开发时,有时注册的方式都不一样,是不是要根据你的设备要求来的! 如:字符注册,总线注册,设备注册,类注册。 但是,从内核的拓扑看的话,又好像是相互归属。设备,驱动,又是总线下面,设备又归属到某一类的设备。而设备统一一个归属。相互链接!!真是比较麻烦! 前辈!!! 讨教几抬有关这方面的内容知识! 谢谢!!!

by shuiyu123 - 驱动开发 - 2009-04-09 14:24:53 阅读(1612) 回复(4)


The Basic Device Structure
~~~~~~~~~~~~~~~~~~~~~~~~~~
struct device {
        struct list_head g_list;
        struct list_head node;
        struct list_head bus_list;
        struct list_head driver_list;
  &nb...

by Knivo - 移动操作系统 - 2011-12-21 08:41:30 阅读(1475) 回复(0)

The Linux Kernel Device Model
Patrick Mochel <mochel@digitalimplant.org>
Drafted 26 August 2002
Updated 31 January 2006

Overview
~~~~~~~~
The Linux Kernel Driver Model is a unification of all the disparate driver
models that were previously used in the kernel. It is i...

by Knivo - 移动操作系统 - 2011-12-21 08:41:29 阅读(1612) 回复(0)

Linux 2.6内核的一个重要特色是提供了统一的内核设备模型。随着技术的不断进步,系统的拓扑结构越来越复杂,对智能电源管理、热插拔以及plug and play的支持要求也越来越高,2.4内核已经难以满足这些需求。为适应这种形势的需要,2.6内核开发了全新的设备模型。 1. Sysfs文件系统 Sysfs文件系统是一个类似于proc文件系统的特殊文件系统,用于将系统中的设备组织成层次结构,并向用户模式程序提供详细的内核数据结构信息。其顶层...

by linuxargue - Linux文档专区 - 2008-11-21 22:42:03 阅读(608) 回复(0)

Driver Binding
Driver binding is the process of associating a device with a device
driver that can control it. Bus drivers have typically handled this
because there have been bus-specific structures to represent the
devices and the drivers. With generic device and device driver
structures, most of the binding can take place using common code.
 

by Knivo - 移动操作系统 - 2011-12-21 08:41:30 阅读(1504) 回复(0)

这篇文章中我会讲到: 列举我所讲的
 
讲一讲我的理解
 
翻译系列
 
 
by Knivo - 移动操作系统 - 2011-12-21 08:41:30 阅读(1279) 回复(0)

linux设备驱动模型有什么用?看起来很复杂,工作中会用到吗?

by teclimber - 嵌入式开发 - 2011-07-01 09:49:04 阅读(2621) 回复(1)

1 平台设备和驱动初识 platform是一个虚拟的地址总线,相比pci,usb,它主要用于描述SOC上的片上资源,比如s3c2410上集成的控制器(lcd,watchdog,rtc等),platform所描述的资源有一个共同点,就是在cpu的总线上直接取址。 平台设备会分到一个名称(用在驱动绑定中)以及一系列诸如地址和中断请求号(IRQ)之类的资源. struct platform_device { const char * name; int id; struct device dev; u32 ...

by wpneu - Linux文档专区 - 2009-06-13 00:25:28 阅读(2148) 回复(0)

本文属本人原创,欢迎转载,转载请注明出处。由于个人的见识和能力有限,不可能面面俱到,也可能存在谬误,敬请网友指出,本人的邮箱是yzq.seen@gmail.com,博客是http://zhiqiang0071.cublog.cn。 Linux设备模型,仅仅看理论介绍,比如LDD3的第十四章,会感觉太抽象不易理解,而通过阅读内核代码就更具体更易理解,所以结合理论介绍和内核代码阅读能够更快速的理解掌握linux设备模型。这一序列的文章的目的就是在于此,看这些...

by zhiqiang0071 - 驱动开发 - 2012-08-10 12:37:40 阅读(2849) 回复(5)

--------------------------------------------本文系本站原创,欢迎转载!转载请注明出处:http:// zhiqiang0071.cublog.cn -------------------------------------------- 本文属本人原创,欢迎转载,转载请注明出处。由于个人的见识和能力有限,不可能面面俱到,也可能存在谬误,敬请网友指出,本人的邮箱是yzq.seen@gmail.com,博客是http:// zhiqiang0071.cublog.cn 。 Linux设备模型,仅仅看理论介绍,比如...

by zhiqiang0071 - Linux文档专区 - 2009-05-11 22:30:27 阅读(741) 回复(0)