易截截图软件、单文件、免安装、纯绿色、仅160KB

Linux内核设备模型(5)

译者:郭少悲
2009/12/02
原文:linux/Documentation/driver-model/device.txt
基本的设备数据结构
~~~~~~~~~~~~~~~~~~
struct device {
        struct list_head g_list;
        struct list_head node;
        struct list_head bus_list;
        struct list_head driver_list;
        struct list_head intf_list;
        struct list_head children;
        struct device   * parent;
        char    name[DEVICE_NAME_SIZE];
        char    bus_id[BUS_ID_SIZE];
        spinlock_t      lock;
        atomic_t        refcount;
        struct bus_type * bus;
        struct driver_dir_entry dir;
    u32        class_num;
        struct device_driver *driver;
        void            *driver_data;
        void            *platform_data;
        u32             current_state;
        unsigned char *saved_state;
        void    (*release)(struct device * dev);
};

~~
g_list:    全局设备链表中的节点。
node: 设备的父亲的孩子链表中的节点(父子关系是树结构中的常用关系)。
bus_


相关文档:

[Linux]GNU自动化工具(automake工具链)


 
Filename

[Linux]GNU
自动化工具(
automake
工具链)
Version

V1.0
Date

12/01/2009
Author

S.C.Leon <leonsc@126.com>
=====================================================================
GNU
自动化工具(
automake
工具链)
一、
Makefile
介绍
Makefile
是 ......

在Linux上配置COM口

在linux系统上同样可以配置串口,使用串口来与其他设备进行通信。
在配置串口前,我们有取得linux系统的root权限,这个很重要。否则无法完成下面步骤。
1.切换到root用户.
[root@localhost ~]#su root
2. 查找有效的串设备.
[root@localhost ~]#cat /proc/devices
Character devices:
  1 mem
  4 /dev/v ......

linux定时执行,脚本问题解决汇总

#!/bin/bash
yesterday=`date -d -1days "+%Y%m%d"`
 
cd /home/www/zdyzlog/
zgrep -P '.*CopyRightId\[A00009042202\].*实时策略开始.*'  /home/appusr/resin-3.0.18/log/log4j_daily_drmThreeWebService.log.$yesterday.gz  >> /home/www/zdyzlog/zhongduancelivkaishi_$yesterday.txt
zgr ......

Linux音频编程指南

虽然目前Linux的优势主要体现在网络服务方面,但事实上同样也有着非常丰富的媒体功能,本文就是以多媒体应用中最基本的声音为对象,介绍如何在Linux平台下开发实际的音频应用程序,同时还给出了一些常用的音频编程框架。
一、数字音频
音频信号是一种连续变化的模拟信号,但计算机只能处理和记录二进制的数字信号,由自然 ......

Linux上安装GCC编译器过程

转自:http://www.yesky.com/366/1793366_1.shtml
2004年4月20日最新版本的GCC编译器3.4.0发布了。目前,GCC可以用来编译C/C++、FORTRAN、JAVA、OBJC、ADA等语言的程序,可根据需要选择安装支持的语言。GCC 3.4.0比以前版本更好地支持了C++标准。本文以在Redhat Linux上安装GCC3.4.0为例,介绍了GCC的安装过程。
  安装 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号