scull代码随笔
来源:互联网 发布:如何加入网络打印机 编辑:程序博客网 时间:2024/06/08 05:03
1. 两种函数的区别:register_chrdev_region(alloc_chrdev_region)只是向系统注册一个设备号,接着还是需要使用cdev_add把这个设备号对应的内核结构向操作系统注册。
struct cdev {
struct kobject kobj;
struct module *owner;
const struct file_operations *ops; // 向系统注册时,给系统能够调用的操作指针
struct list_head list;
dev_t dev; // 设备号,通过这个值,操作系统就可以把某个特定的设备号和内核的某个数据结构联系在一起
unsigned int count;
};
- scull代码随笔
- ldd3 scull代码理解
- scull
- 2010-3-8 scull代码阅读 编译 测试
- 2010-3-9 scull、scullp代码阅读(写文档)
- linux 内核驱动学习之scull代码编译
- scull-scull.h
- 程序员随笔: 拥抱代码
- 程序员随笔:拥抱代码
- 代码重构随笔
- android 随笔,代码片段
- 代码注意事项随笔
- java 代码随笔记录
- 代码回忆录:PHP随笔
- C++代码随笔
- 开始scull
- scull bug
- Scull驱动
- c# vs2005 多线程中调用窗体控件 (摘)
- MFC存储图片到SQL Server数据库
- 使用.net 中的动态方法编程备忘录3(DynamicMethod 的最优访问方式)
- iPhone 4的Romurs
- Ubuntu 10.4下 Android ADT的编译错误排除
- scull代码随笔
- 升级vmware tools导致了vm上不了网
- Ubuntu 下firefox貌似有问题
- Redis入门教程
- 【转载】Asp.net中后台*.cs与前台JS脚本之间相互调用心得
- 我的第一篇博客
- official guide of building linux sdk and windows sdk
- 设计原则
- 电子商务网站的后台管理系统