kdev_t.h 宏定义解析
这个header file反正不多,直接原因是——遇到了,就搞定它!
dev_t 类型的变量定义在linux/types.h 用来保存设备编号——包括主设备号和次设备号。dev_t 是一个32位的数,其中12位用来表示设备号,其余20位用来表示次设备号。
始终不要对这32...
分类:
系统相关 时间:
2014-07-29 14:26:08
阅读次数:
300
#include
#include
#include
struct file_operations;
struct inode;
struct module;
struct cdev {
struct kobject kobj;
struct module *owner;
const struct file_opera...
分类:
系统相关 时间:
2014-07-29 14:18:28
阅读次数:
280
1、检查有没有安装gcc可以通过which gcc或者whereis gcc查看。sudo apt-get install gcc 2、安装内核头文件内核头文件默认是会安装到/usr/src目录下。如果到/usr/src查看发现目录为空,即没有安装。查看内核:uname -r安装:sudo apt-...
分类:
其他好文 时间:
2014-07-25 14:03:31
阅读次数:
236
主要来自ubuntu中文社区http://www.ubuntu.org.cn/support/documentation/doc/VMware首选,确认你已经安装了build-essential程序包:
apt-get install build-essential确认你已经安装了内核头文件包: u...
分类:
其他好文 时间:
2014-05-25 12:40:10
阅读次数:
299
Mini2440 led驱动Mini2440_leds.c 代码:#include #include
//延时函数的头文件#include #include #include //硬件相关的函数#include // 内核头文件#include
//模块加载的头文件#include //用户定义的模...
分类:
其他好文 时间:
2014-05-08 13:49:53
阅读次数:
345